uka.psp
Class PSPServer

java.lang.Object
  extended byuka.psp.PSPServer

public class PSPServer
extends java.lang.Object

Converted from GMTechnology with sed 's/vport/port/gi ; s/gm/psp/gi' uka.gm.GMServer

Author:
Bernhard Haumacher

Nested Class Summary
static class PSPServer.Connection
           
 
Field Summary
private static int CONNECT_MSG_SIZE
           
private  PSP.Port port
           
 
Constructor Summary
PSPServer(int port)
           
 
Method Summary
 PSPServer.Connection accept()
           
static PSPServer.Connection connect(int toNode, int toPort)
           
 int getPortNr()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

port

private PSP.Port port

CONNECT_MSG_SIZE

private static final int CONNECT_MSG_SIZE
See Also:
Constant Field Values
Constructor Detail

PSPServer

public PSPServer(int port)
          throws java.io.IOException
Method Detail

getPortNr

public int getPortNr()

accept

public PSPServer.Connection accept()
                            throws java.io.IOException
Throws:
java.io.IOException

connect

public static PSPServer.Connection connect(int toNode,
                                           int toPort)
                                    throws java.io.IOException
Throws:
java.io.IOException