net.alhem.jsockets
Class ListenSocket

java.lang.Object
  extended by net.alhem.jsockets.Socket
      extended by net.alhem.jsockets.ListenSocket

public class ListenSocket
extends Socket

Author:
Anders Hedstrom (grymse@alhem.net)

Field Summary
private  Socket m_creator
           
 
Constructor Summary
ListenSocket(SocketHandler h, Socket creator)
          Creates a new instance of ListenSocket
 
Method Summary
 int Bind(int port)
           
 Socket Create()
           
 void OnDelete()
           
 void OnInitialOps()
           
 void OnRead()
           
 
Methods inherited from class net.alhem.jsockets.Socket
attach, CloseAndDelete, Connecting, GetChannel, GetKey, Handler, LineProtocol, OnAccept, OnConnect, OnLine, OnRawData, OnWrite, ReadLine, SetCloseAndDelete, SetConnecting, SetConnecting, SetKey, SetLineProtocol, SetLineProtocol, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

m_creator

private Socket m_creator
Constructor Detail

ListenSocket

public ListenSocket(SocketHandler h,
                    Socket creator)
Creates a new instance of ListenSocket

Method Detail

Create

public Socket Create()
Specified by:
Create in class Socket

OnInitialOps

public void OnInitialOps()
Specified by:
OnInitialOps in class Socket

Bind

public int Bind(int port)

OnRead

public void OnRead()
Overrides:
OnRead in class Socket

OnDelete

public void OnDelete()
Overrides:
OnDelete in class Socket