Package | Description |
---|---|
java.net |
Modifier and Type | Class and Description |
---|---|
class |
BindException |
class |
ConnectException |
class |
NoRouteToHostException |
class |
PortUnreachableException
PortUnreachableException: new since 1.4
|
Modifier and Type | Method and Description |
---|---|
protected abstract void |
DatagramSocketImpl.bind(int lport,
InetAddress laddr)
Binds a datagram socket to a local port and address.
|
void |
DatagramSocket.bind(SocketAddress bindAddr) |
protected abstract void |
DatagramSocketImpl.create()
Create a datagram socket
|
boolean |
DatagramSocket.getBroadcast() |
static NetworkInterface |
NetworkInterface.getByInetAddress(InetAddress addr) |
static NetworkInterface |
NetworkInterface.getByName(String name) |
InetAddress |
MulticastSocket.getInterface() |
boolean |
Socket.getKeepAlive() |
static Enumeration |
NetworkInterface.getNetworkInterfaces() |
boolean |
Socket.getOOBInline() |
Object |
SocketOptions.getOption(int optID) |
int |
DatagramSocket.getReceiveBufferSize()
returns the size of the 'recieve' buffers of this socket.
|
int |
Socket.getReceiveBufferSize() |
boolean |
DatagramSocket.getReuseAddress() |
boolean |
Socket.getReuseAddress() |
int |
DatagramSocket.getSendBufferSize()
returns the size of the 'send' buffers of this socket.
|
int |
Socket.getSendBufferSize() |
int |
Socket.getSoLinger() |
int |
DatagramSocket.getSoTimeout()
returns the timeout value of this socket.
|
int |
Socket.getSoTimeout() |
boolean |
Socket.getTcpNoDelay() |
int |
Socket.getTrafficClass() |
void |
DatagramSocket.setBroadcast(boolean on) |
void |
MulticastSocket.setInterface(InetAddress addr) |
void |
Socket.setKeepAlive(boolean on) |
void |
Socket.setOOBInline(boolean on) |
void |
SocketOptions.setOption(int optID,
Object value) |
void |
DatagramSocket.setReceiveBufferSize(int size)
This method tries to set the 'recieve' buffersize.
|
void |
Socket.setReceiveBufferSize(int size) |
void |
DatagramSocket.setReuseAddress(boolean on) |
void |
Socket.setReuseAddress(boolean on) |
void |
DatagramSocket.setSendBufferSize(int size)
This method tries to set the 'send' buffersize.
|
void |
Socket.setSendBufferSize(int size) |
void |
Socket.setSoLinger(boolean on,
int linger) |
void |
DatagramSocket.setSoTimeout(int timeout)
set the socket timeout values.
|
void |
ServerSocket.setSoTimeout(int timeout) |
void |
Socket.setSoTimeout(int timeout) |
void |
Socket.setTcpNoDelay(boolean on) |
void |
DatagramSocket.setTrafficClass(int tc) |
void |
Socket.setTrafficClass(int tcl) |
Constructor and Description |
---|
DatagramPacket(byte[] buf,
int offset,
int length,
SocketAddress address) |
DatagramPacket(byte[] bytes,
int length,
SocketAddress address) |
DatagramSocket() |
DatagramSocket(int port) |
DatagramSocket(int port,
InetAddress laddr) |
DatagramSocket(SocketAddress saddr) |
Socket(SocketImpl impl) |