net.sourceforge.jsrvany.util
Interface SimpleServer

All Known Implementing Classes:
SimpleServerImplementation, ChatServer, Debugger

public interface SimpleServer

This interface reprements an EXTREMELY simple socket Server

Copyright (c) 1999 Damian Fauth

 


Method Summary
 void listen(int port)
          listen on a port
 void setSoTimeout(int msecs)
          set the readtimeout on the socket
 

Method Detail

listen

public void listen(int port)
            throws java.io.IOException
listen on a port
Parameters:
port - is the port number to listen on
Throws:
java.io.IOException - may be thrown

setSoTimeout

public void setSoTimeout(int msecs)
set the readtimeout on the socket
Parameters:
msecs - is the timeout value in milliseconds