TcpListener tcpServer = new TcpListener(IPAddress.Parse("192.168.1.15"), 5442);
so that a BYOND game could communicate with external applications.
ID:154802
Dec 18 2011, 3:43 pm
|
|
I was hoping to setup a listener in C# using something like this...
TcpListener tcpServer = new TcpListener(IPAddress.Parse("192.168.1.15"), 5442); so that a BYOND game could communicate with external applications. |
As DC has mentioned, the preferred avenue would actually be to implement HTTP GET support in your listener, and allow BYOND worlds to Export() to the bound address/port of that. Seems C# offers such support out of the bag:
http://msdn.microsoft.com/en-us/library/ system.net.httplistener.aspx |
In response to Stephen001
|
|
ahh... missed that one. :) Thanks!
|
This post has some info, and links to another post with the message byte format:
http://www.byond.com/developer/ forum/?id=701287&display=1#701287
Of course, you could also just write a DLL and use call() to send it more simply.