|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.minecraft.network.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 INetworkManager
public void addToSendQueue(Packet par1Packet)
addToSendQueue
in interface INetworkManager
public void wakeThreads()
wakeThreads
in interface INetworkManager
public void closeConnections()
closeConnections
in interface INetworkManager
public boolean isConnectionActive()
public void processReadPackets()
processReadPackets
in interface INetworkManager
public SocketAddress getSocketAddress()
getSocketAddress
in interface INetworkManager
public void serverShutdown()
serverShutdown
in interface INetworkManager
public void networkShutdown(String par1Str, Object... par2ArrayOfObj)
networkShutdown
in interface INetworkManager
public int packetSize()
packetSize
in interface INetworkManager
public 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 |