public class DatagramSocket extends Object
| Constructor and Description |
|---|
DatagramSocket() |
DatagramSocket(int var0) |
DatagramSocket(int var0,
InetAddress var1) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
connect(InetAddress var0,
int var1) |
void |
disconnect() |
InetAddress |
getInetAddress() |
InetAddress |
getLocalAddress() |
int |
getLocalPort() |
int |
getPort() |
int |
getReceiveBufferSize() |
int |
getSendBufferSize() |
int |
getSoTimeout() |
void |
receive(DatagramPacket var0) |
void |
send(DatagramPacket var0) |
static void |
setDatagramSocketImplFactory(DatagramSocketImplFactory var0) |
void |
setReceiveBufferSize(int var0) |
void |
setSendBufferSize(int var0) |
void |
setSoTimeout(int var0) |
public DatagramSocket()
throws SocketException
SocketExceptionpublic DatagramSocket(int var0)
throws SocketException
SocketExceptionpublic DatagramSocket(int var0,
InetAddress var1)
throws SocketException
SocketExceptionpublic void close()
public void connect(InetAddress var0, int var1)
public void disconnect()
public InetAddress getInetAddress()
public InetAddress getLocalAddress()
public int getLocalPort()
public int getPort()
public int getReceiveBufferSize()
throws SocketException
SocketExceptionpublic int getSendBufferSize()
throws SocketException
SocketExceptionpublic int getSoTimeout()
throws SocketException
SocketExceptionpublic void receive(DatagramPacket var0) throws IOException
IOExceptionpublic void send(DatagramPacket var0) throws IOException
IOExceptionpublic void setSendBufferSize(int var0)
throws SocketException
SocketExceptionpublic void setReceiveBufferSize(int var0)
throws SocketException
SocketExceptionpublic void setSoTimeout(int var0)
throws SocketException
SocketExceptionpublic static void setDatagramSocketImplFactory(DatagramSocketImplFactory var0) throws IOException
IOException