jist.swans.trans
Interface SocketInterface.TcpServerSocketInterface

All Superinterfaces:
JistAPI.Proxiable, JistAPI.Timeless, SocketInterface
All Known Implementing Classes:
TcpServerSocket
Enclosing interface:
SocketInterface

public static interface SocketInterface.TcpServerSocketInterface
extends SocketInterface

Defines the interface for TcpServerSocket specific implementation.


Nested Class Summary
 
Nested classes/interfaces inherited from interface jist.swans.trans.SocketInterface
SocketInterface.TcpServerSocketInterface, SocketInterface.TcpSocketInterface
 
Method Summary
 TcpSocket accept()
          Listens for a connection to be made to this socket and accepts it.
 void bind(java.net.SocketAddress endpoint, int backlog)
          Binds the ServerSocket to a specific address (IP address and port number).
 java.nio.channels.ServerSocketChannel getChannel()
          Returns the unique ServerSocketChannel object associated with this socket, if any.
 
Methods inherited from interface jist.swans.trans.SocketInterface
_jistPostInit, bind, checkPacketandState, close, getInetAddress, getLocalPort, getLocalSocketAddress, getReceiveBufferSize, getReuseAddress, getSoTimeout, isBound, isClosed, setReceiveBufferSize, setReuseAddress, setSoTimeout, setTcpEntity, toString
 

Method Detail

accept

TcpSocket accept()
                 throws JistAPI.Continuation
Listens for a connection to be made to this socket and accepts it.

Returns:
the new TcpSocket
Throws:
JistAPI.Continuation - never; blocking event.

bind

void bind(java.net.SocketAddress endpoint,
          int backlog)
          throws JistAPI.Continuation
Binds the ServerSocket to a specific address (IP address and port number).

Parameters:
endpoint - The IP address & port number to bind to.
backlog - The listen backlog length.
Throws:
JistAPI.Continuation - never; blocking event.

getChannel

java.nio.channels.ServerSocketChannel getChannel()
                                                 throws JistAPI.Continuation
Returns the unique ServerSocketChannel object associated with this socket, if any.

Returns:
the server-socket channel associated with this socket, or null if this socket was not created for a channel
Throws:
JistAPI.Continuation - never; blocking event