Saros
Distributed Collaborative Editing and Distributed Party Programming
de.fu_berlin.inf.dpp.net.internal.TCPServer Class Reference

List of all members.

Public Member Functions

synchronized int start (InetAddress address, int port) throws IOException
synchronized void stop ()

Member Function Documentation

synchronized int de.fu_berlin.inf.dpp.net.internal.TCPServer.start ( InetAddress  address,
int  port 
) throws IOException

Starts a server on the given address and port.

Parameters:
addressthe address to bind the server to or null
portthe port to use, if negative the server will try to bind to a free port beginning with the given port number
Exceptions:
IOExceptionif the server could not been started
Returns:
the port number the server was bound to or -1 is already started
synchronized void de.fu_berlin.inf.dpp.net.internal.TCPServer.stop ( )

Stops the currently running server.

 All Classes Namespaces Files Functions Variables Enumerations