Fields
Name | Description |
---|---|
address | The IP address of the remote end of this socket. |
fd | The file descriptor object for this socket. |
localport | The local port number to which this socket is connected. |
port | The port number on the remote host to which this socket is connected. |
Constructors
Name | Description |
---|---|
SocketImpl() |
Methods
Name | Description |
---|---|
accept(SocketImpl) | Accepts a connection. |
available() | Returns the number of bytes that can be read from this socket without blocking. |
bind(InetAddress, int) | Binds this socket to the specified port number on the specified host. |
close() | Closes this socket. |
connect(InetAddress, int) | Connects this socket to the specified port number on the specified host. |
connect(String, int) | Connects this socket to the specified port on the named host. |
create(boolean) | Creates either a stream or a datagram socket. |
getFileDescriptor() | Returns the value of this socket's fd field. |
getInetAddress() | Returns the value of this socket's address field. |
getInputStream() | Returns an input stream for this socket. |
getLocalPort() | Returns the value of this socket's localport field. |
getOutputStream() | Returns an output stream for this socket. |
getPort() | Returns the value of this socket's port field. |
listen(int) | Sets the maximum queue length for incoming connection indications (a request to connect) to the count argument. |
toString() | Returns the address and port of this socket as a String. |