I'm planning on creating a C# program (an IRC bot, to be specific). I need it to be able to receive requests from and/or be controlled by a web pag开发者_开发技巧e. I plan on getting a VPS, that I will host my website and this bot on.
For example, suppose I have a button on an ajax page. If a user clicks that button, could it trigger a c# event using php, and perhaps carry some arguments (like text in a form on that same page)?
I am new to this field of programming and may not use some correct terminology, and feel free to correct me.
Sounds like you want to be using TcpClient
. System.Net.Sockets.TcpClient
Boom baby! IRC bot code is he'ya:
IRC Bot code
And while there are a hundred ways to sunday to make a program that responds to http requests, go do a tutorial on Asp.Net. Whether it's taking a command through a web page or showing an interface, this will be a nice step into an easy new technology for you:
http://www.asp.net/mvc
In particular, go through the free PluralSight training on that web page. You will not regret it.
精彩评论