| 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.minecraft.src.MemoryConnection
public class MemoryConnection
| Constructor Summary | |
|---|---|
MemoryConnection(NetHandler par1NetHandler)
 | 
|
| Method Summary | |
|---|---|
 void | 
addToSendQueue(Packet par1Packet)
Adds the packet to the correct send queue (chunk data packets go to a separate queue).  | 
 void | 
closeConnections()
 | 
 MemoryConnection | 
getPairedConnection()
 | 
 SocketAddress | 
getSocketAddress()
Return the InetSocketAddress of the remote endpoint  | 
 boolean | 
isConnectionActive()
 | 
 boolean | 
isGamePaused()
 | 
 void | 
networkShutdown(String par1Str,
                               Object... par2ArrayOfObj)
Shuts down the network with the specified reason.  | 
 int | 
packetSize()
returns 0 for memoryConnections  | 
 void | 
pairWith(MemoryConnection par1MemoryConnection)
 | 
 void | 
processOrCachePacket(Packet par1Packet)
acts immiditally if isWritePacket, otherwise adds it to the readCache to be processed next tick  | 
 void | 
processReadPackets()
Checks timeouts and processes all pending read packets.  | 
 void | 
serverShutdown()
Shuts down the server.  | 
 void | 
setGamePaused(boolean par1)
 | 
 void | 
setNetHandler(NetHandler par1NetHandler)
Sets the NetHandler for this NetworkManager.  | 
 void | 
wakeThreads()
Wakes reader and writer threads  | 
| Methods inherited from class java.lang.Object | 
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public MemoryConnection(NetHandler par1NetHandler)
                 throws IOException
IOException| Method Detail | 
|---|
public void setNetHandler(NetHandler par1NetHandler)
setNetHandler in interface INetworkManagerpublic void addToSendQueue(Packet par1Packet)
addToSendQueue in interface INetworkManagerpublic void wakeThreads()
wakeThreads in interface INetworkManagerpublic void closeConnections()
closeConnections in interface INetworkManagerpublic boolean isConnectionActive()
public void processReadPackets()
processReadPackets in interface INetworkManagerpublic SocketAddress getSocketAddress()
getSocketAddress in interface INetworkManagerpublic void serverShutdown()
serverShutdown in interface INetworkManager
public void networkShutdown(String par1Str,
                            Object... par2ArrayOfObj)
networkShutdown in interface INetworkManagerpublic int packetSize()
packetSize in interface INetworkManagerpublic void pairWith(MemoryConnection par1MemoryConnection)
public boolean isGamePaused()
public void setGamePaused(boolean par1)
public MemoryConnection getPairedConnection()
public void processOrCachePacket(Packet par1Packet)
  | 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||