public class UDPClient
extends java.lang.Object
Constructor and Description |
---|
UDPClient(java.lang.String serverHostname,
int port,
int bufferSize) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
java.lang.String |
receive()
Receives information from client as a String
|
byte[] |
receiveByteArray()
Receives information from server as an array of bytes
|
void |
send(java.lang.String sentence) |