| Constructor and Description |
|---|
TCPSender() |
TCPSender(int port) |
TCPSender(java.lang.String host) |
TCPSender(java.lang.String host,
int port) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
java.lang.String |
getHost() |
int |
getPort() |
void |
send(java.nio.ByteBuffer data) |
public TCPSender(java.lang.String host,
int port)
throws java.io.IOException
java.io.IOExceptionpublic TCPSender(int port)
throws java.io.IOException
java.io.IOExceptionpublic TCPSender(java.lang.String host)
throws java.io.IOException
java.io.IOExceptionpublic TCPSender()
throws java.io.IOException
java.io.IOExceptionpublic java.lang.String getHost()
public int getPort()
public void send(java.nio.ByteBuffer data)
throws java.io.IOException
public void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseablejava.io.IOException