Package net.minecraft.src
Class NetworkManager
- java.lang.Object
-
- net.minecraft.src.NetworkManager
-
public class NetworkManager extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description @net.minecraft.modding.api.Side.Client int
backedUpSendQueue
int
chunkDataSendCounter
static int[]
field_28144_e
static int[]
field_28145_d
static int
numReadThreads
static int
numWriteThreads
static java.lang.Object
threadSyncObject
int
timeSinceLastRead
-
Constructor Summary
Constructors Constructor Description NetworkManager(java.net.Socket var1, java.lang.String var2, NetHandler var3)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addToSendQueue(Packet var1)
int
getNumChunkDataPackets()
java.net.SocketAddress
getRemoteAddress()
java.net.Socket
getSocket()
void
networkShutdown(java.lang.String var1, java.lang.Object... var2)
void
processReadPackets()
void
serverShutdown()
void
setNetHandler(NetHandler var1)
void
wakeThreads()
-
-
-
Field Detail
-
threadSyncObject
public static final java.lang.Object threadSyncObject
-
numReadThreads
public static int numReadThreads
-
numWriteThreads
public static int numWriteThreads
-
timeSinceLastRead
public int timeSinceLastRead
-
field_28145_d
public static int[] field_28145_d
-
field_28144_e
public static int[] field_28144_e
-
chunkDataSendCounter
public int chunkDataSendCounter
-
backedUpSendQueue
@Client public @net.minecraft.modding.api.Side.Client int backedUpSendQueue
-
-
Constructor Detail
-
NetworkManager
public NetworkManager(java.net.Socket var1, java.lang.String var2, NetHandler var3) throws java.io.IOException
- Throws:
java.io.IOException
-
-
Method Detail
-
setNetHandler
public void setNetHandler(NetHandler var1)
-
addToSendQueue
public void addToSendQueue(Packet var1)
-
wakeThreads
public void wakeThreads()
-
networkShutdown
public void networkShutdown(java.lang.String var1, java.lang.Object... var2)
-
processReadPackets
public void processReadPackets()
-
getRemoteAddress
public java.net.SocketAddress getRemoteAddress()
-
serverShutdown
public void serverShutdown()
-
getNumChunkDataPackets
public int getNumChunkDataPackets()
-
getSocket
public java.net.Socket getSocket()
-
-