rero.dcc
Class ListenDCC
java.lang.Object
rero.dcc.GenericDCC
rero.dcc.ListenDCC
- All Implemented Interfaces:
- Runnable
- public class ListenDCC
- extends GenericDCC
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
server
protected ServerSocket server
offset
protected static int offset
timeout
protected static int timeout
ListenDCC
public ListenDCC()
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