|
||||||||||
| 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 NetworkManagerpublic void addToSendQueue(Packet par1Packet)
addToSendQueue in interface NetworkManagerpublic void closeConnections()
closeConnections in interface NetworkManagerpublic boolean isConnectionActive()
public void wakeThreads()
wakeThreads in interface NetworkManagerpublic void processReadPackets()
processReadPackets in interface NetworkManagerpublic SocketAddress getSocketAddress()
getSocketAddress in interface NetworkManagerpublic void serverShutdown()
serverShutdown in interface NetworkManager
public void networkShutdown(String par1Str,
Object... par2ArrayOfObj)
networkShutdown in interface NetworkManagerpublic int packetSize()
packetSize in interface NetworkManagerpublic 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 | |||||||||