[Solved] Send/Receive byte[] via TCP Socket [closed]


Use the Socket class.

There is no Poll method, however there are other methods that can be used to check the socket status.
For example, you can use Socket.isOutputShutdown() to check if the output stream is available (Whether it has been shutdown or not), and you can use Socket.getInputStream().available() to get the number of bytes available to read now.

solved Send/Receive byte[] via TCP Socket [closed]