public class TCPSocket extends java.lang.Object implements ITCPSocket
Socket implementation for the ITCPSocket interface.| Constructor and Description |
|---|
TCPSocket(ServerAddress serverAddress,
int connectTimeout,
int readTimeout) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
java.io.InputStream |
getInputStream() |
java.io.OutputStream |
getOutputStream() |
public TCPSocket(ServerAddress serverAddress, int connectTimeout, int readTimeout) throws java.io.IOException
java.io.IOExceptionpublic java.io.InputStream getInputStream()
getInputStream in interface ITCPSocketpublic java.io.OutputStream getOutputStream()
getOutputStream in interface ITCPSocketpublic void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseablejava.io.IOException