public class

ManagedServerSocket

extends Object
implements NioEndpoint
java.lang.Object
   ↳ com.ericsson.research.transport.ManagedServerSocket
Known Direct Subclasses

Summary

Nested Classes
enum ManagedServerSocket.State  
Public Constructors
ManagedServerSocket()
Public Methods
boolean canAccept()
synchronized void close()
NioEndpoint createAcceptChild()
Create a child that can be used for accepting.
InetSocketAddress getInetAddress()
SelectionKey getKey()
ManagedServerSocket.State getState()
void listen(InetSocketAddress address)
void listen(int port)
void listen(InetAddress host, int port)
void listen(String addr, int port)
void notifyAccepted(NioEndpoint endpoint)
synchronized void notifyClosed()
void notifyConnected()
void notifyError(Exception e)
void receive(byte[] data, int size)
void registerClient(ManagedServerSocketClient client)
void setNioManager(NioManager nioManager, SelectionKey key)
Protected Methods
void finalize()
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.ericsson.research.transport.NioEndpoint

Public Constructors

public ManagedServerSocket ()

Public Methods

public boolean canAccept ()

public synchronized void close ()

public NioEndpoint createAcceptChild ()

Create a child that can be used for accepting.

Returns
  • A newly created NioEndpoint object capable of processing replies from this NioManager

public InetSocketAddress getInetAddress ()

public SelectionKey getKey ()

public ManagedServerSocket.State getState ()

public void listen (InetSocketAddress address)

public void listen (int port)

Throws
IOException

public void listen (InetAddress host, int port)

public void listen (String addr, int port)

Throws
IOException

public void notifyAccepted (NioEndpoint endpoint)

public synchronized void notifyClosed ()

public void notifyConnected ()

public void notifyError (Exception e)

public void receive (byte[] data, int size)

public void registerClient (ManagedServerSocketClient client)

public void setNioManager (NioManager nioManager, SelectionKey key)

Protected Methods

protected void finalize ()

Throws
Throwable