|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectudt.UDTClient
public class UDTClient
| Constructor Summary | |
|---|---|
UDTClient(InetAddress address)
|
|
UDTClient(InetAddress address,
int localport)
|
|
UDTClient(UDPEndPoint endpoint)
|
|
| Method Summary | |
|---|---|
void |
connect(InetAddress address,
int port)
establishes a connection to the given server. |
void |
connect(String host,
int port)
establishes a connection to the given server. |
void |
flush()
flush outstanding data (and make sure it is acknowledged) |
UDPEndPoint |
getEndpoint()
|
InputStream |
getInputStream()
|
OutputStream |
getOutputStream()
|
Socket |
getSocket()
|
UDTStatistics |
getStatistics()
|
int |
read(byte[] data)
|
void |
send(byte[] data)
sends the given data asynchronously |
void |
sendBlocking(byte[] data)
|
void |
shutdown()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public UDTClient(InetAddress address,
int localport)
throws SocketException,
UnknownHostException
SocketException
UnknownHostException
public UDTClient(InetAddress address)
throws SocketException,
UnknownHostException
SocketException
UnknownHostException
public UDTClient(UDPEndPoint endpoint)
throws SocketException,
UnknownHostException
SocketException
UnknownHostException| Method Detail |
|---|
public void connect(String host,
int port)
throws InterruptedException,
UnknownHostException,
IOException
host - port -
UnknownHostException
InterruptedException
IOException
public void connect(InetAddress address,
int port)
throws InterruptedException,
UnknownHostException,
IOException
host - port -
UnknownHostException
InterruptedException
IOException
public void send(byte[] data)
throws IOException,
InterruptedException
data -
IOException
InterruptedException
public void sendBlocking(byte[] data)
throws IOException,
InterruptedException
IOException
InterruptedException
public int read(byte[] data)
throws IOException,
InterruptedException
IOException
InterruptedException
public void flush()
throws IOException,
InterruptedException
IOException
InterruptedException
public void shutdown()
throws IOException
IOException
public InputStream getInputStream()
throws IOException
IOException
public OutputStream getOutputStream()
throws IOException
IOException
public UDPEndPoint getEndpoint()
throws IOException
IOExceptionpublic UDTStatistics getStatistics()
public Socket getSocket()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||