net.sourceforge.simplegamenet.framework.transport
Class ServerConnection

java.lang.Object
  extended bynet.sourceforge.simplegamenet.framework.transport.Connection
      extended bynet.sourceforge.simplegamenet.framework.transport.ServerConnection
All Implemented Interfaces:
Runnable

public class ServerConnection
extends net.sourceforge.simplegamenet.framework.transport.Connection


Field Summary
protected  boolean active
           
protected  boolean gameEndUnprocessed
           
protected  Thread inputThread
           
protected  ObjectInputStream objectInputStream
           
protected  ObjectOutputStream objectOutputStream
           
protected  Integer playerID
           
protected  ServerModem serverModem
           
protected  Socket socket
           
 
Constructor Summary
ServerConnection(ServerModem serverModem, Integer playerID, Socket socket, ObjectInputStream objectInputStream, ObjectOutputStream objectOutputStream)
           
 
Method Summary
 void close()
           
 void run()
           
 void sendPacket(Packet packet)
           
 void setGameEndUnprocessed(boolean gameEndUnprocessed)
           
 void start()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

serverModem

protected ServerModem serverModem

playerID

protected Integer playerID

gameEndUnprocessed

protected boolean gameEndUnprocessed

socket

protected Socket socket

objectInputStream

protected ObjectInputStream objectInputStream

objectOutputStream

protected ObjectOutputStream objectOutputStream

inputThread

protected Thread inputThread

active

protected boolean active
Constructor Detail

ServerConnection

public ServerConnection(ServerModem serverModem,
                        Integer playerID,
                        Socket socket,
                        ObjectInputStream objectInputStream,
                        ObjectOutputStream objectOutputStream)
Method Detail

run

public void run()

sendPacket

public void sendPacket(Packet packet)

setGameEndUnprocessed

public void setGameEndUnprocessed(boolean gameEndUnprocessed)

close

public void close()

start

public void start()


Copyright © 2003-2004 The 3 Belgians. All Rights Reserved.