Class jls.net.ServerSocket

This class represents a server TCP socket.
Defined in: ServerSocket.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
jls.net.ServerSocket(port, backlog, bindAddr)
Creates a TCP server socket.
Method Summary
Method Attributes Method Name and Description
 
Listens for a connection to be made to this socket and accepts it.
 
bind(port, backlog, bindAddr)
Binds the ServerSocket to a specific address (IP address and port number).
 
Closes this server socket.
 
Adjusts this server socket's blocking mode.
Class Detail
jls.net.ServerSocket(port, backlog, bindAddr)
Creates a TCP server socket.
Parameters:
{Number} port Optional
The port number to bind to.
{Number} backlog Optional
The maximum length of the queue.
{jls.net.InetAddress} bindAddr Optional
The host the server will bind to.
Method Detail
{jls.net.Socket} accept()
Listens for a connection to be made to this socket and accepts it.
Returns:
{jls.net.Socket} The new socket.

bind(port, backlog, bindAddr)
Binds the ServerSocket to a specific address (IP address and port number).
Parameters:
{Number} port
The port number to bind to.
{Number} backlog Optional
The maximum length of the queue.
{jls.net.InetAddress} bindAddr Optional
The host the server will bind to.

{jls.net.ServerSocket} close()
Closes this server socket.
Returns:
{jls.net.ServerSocket} This server socket.

{jls.net.ServerSocket} configureBlocking(block)
Adjusts this server socket's blocking mode.
Parameters:
{Boolean} block
Whether the socket is placed in blocking mode.
Returns:
{jls.net.ServerSocket} This server socket.

Documentation generated by JsDoc Toolkit 2.3.2 on Sat Jan 08 2011 02:00:14 GMT+0100 (CET)