rero.dcc
Class ListenDCC

java.lang.Object
  extended byrero.dcc.GenericDCC
      extended byrero.dcc.ListenDCC
All Implemented Interfaces:
Runnable

public class ListenDCC
extends GenericDCC


Field Summary
protected static int offset
           
protected  ServerSocket server
           
protected static int timeout
           
 
Fields inherited from class rero.dcc.GenericDCC
fw, impl
 
Constructor Summary
ListenDCC()
           
 
Method Summary
 Socket establishConnection()
           
 int getListenerPort()
          instructs the class to listen for a connection on some port, returns the port as an integer.
 
Methods inherited from class rero.dcc.GenericDCC
announceFramework, connect, getImplementation, getNickname, getState, getTypeOfDCC, run, setImplementation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

server

protected ServerSocket server

offset

protected static int offset

timeout

protected static int timeout
Constructor Detail

ListenDCC

public ListenDCC()
Method Detail

getListenerPort

public int getListenerPort()
instructs the class to listen for a connection on some port, returns the port as an integer. A return value of -1 indicates there was a problem binding to the port. Doh!@


establishConnection

public Socket establishConnection()
Specified by:
establishConnection in class GenericDCC