Fields
| Name | Description |
|---|---|
| fd | The file descriptor object |
| localPort |
Constructors
| Name | Description |
|---|---|
| DatagramSocketImpl() |
Methods
| Name | Description |
|---|---|
| bind(int, InetAddress) | Binds a datagram socket to a local port and address. |
| close() | Close the socket. |
| create() | Creates a datagram socket |
| getFileDescriptor() | Get the datagram socket file descriptor |
| getLocalPort() | Get the local port. |
| getTTL() | Retrieve the TTL (time-to-live) option. |
| join(InetAddress) | Join the multicast group. |
| leave(InetAddress) | Leave the multicast group. |
| peek(InetAddress) | Peek at the packet to see who it is from. |
| receive(DatagramPacket) | Receive the datagram packet. |
| send(DatagramPacket) | Sends a datagram packet. |
| setTTL(byte) | Set the TTL (time-to-live) option. |