uka.gm
Class GMServer

java.lang.Object
  extended byuka.gm.GMServer

public class GMServer
extends java.lang.Object

Author:
Bernhard Haumacher

Nested Class Summary
static class GMServer.Connection
           
 
Field Summary
private static int CONNECT_MSG_SIZE
           
private  GM.VPort vport
           
 
Constructor Summary
GMServer(int vport)
           
 
Method Summary
 GMServer.Connection accept()
           
static GMServer.Connection connect(GM.UID toUID, int toVPort)
           
 java.lang.String getHostName()
           
 GM.UID getUID()
           
 int getVPortNr()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

vport

private GM.VPort vport

CONNECT_MSG_SIZE

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

GMServer

public GMServer(int vport)
         throws java.io.IOException
Method Detail

getVPortNr

public int getVPortNr()

getUID

public GM.UID getUID()

getHostName

public java.lang.String getHostName()

accept

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

connect

public static GMServer.Connection connect(GM.UID toUID,
                                          int toVPort)
                                   throws java.io.IOException
Throws:
java.io.IOException