|
Re: Is TCP communication allowed in-game?
Quote:
Originally Posted by Lalaland1125
http://ideone.com/9dM5E
That's our code as of roughly now(I think the only change was that the robot does not support UTF, so we just switched that to ASCII or something).
javax.microedition.io is where the magic is.
If you want I can give you our server-side code, but it's just standard socket opening and accepting a connection(in C++ that is).
|
Why can't you just go with message = m_inputStream.readUTF(); instead of all that, which should do the same thing? and same for outputStream with writeUTF
Last edited by shuhao : 14-01-2012 at 11:15.
|