YATS/Forge Documentation
 All Classes Namespaces Files Functions Variables Enumerator Pages
net.minecraft.network.TcpConnection Class Reference
Inheritance diagram for net.minecraft.network.TcpConnection:
net.minecraft.network.INetworkManager

Public Member Functions

 TcpConnection (ILogAgent par1ILogAgent, Socket par2Socket, String par3Str, NetHandler par4NetHandler) throws IOException
 
 TcpConnection (ILogAgent par1ILogAgent, Socket par2Socket, String par3Str, NetHandler par4NetHandler, PrivateKey par5PrivateKey) throws IOException
 
void closeConnections ()
 
void setNetHandler (NetHandler par1NetHandler)
 
void addToSendQueue (Packet par1Packet)
 
void wakeThreads ()
 
void networkShutdown (String par1Str, Object...par2ArrayOfObj)
 
void processReadPackets ()
 
SocketAddress getSocketAddress ()
 
void serverShutdown ()
 
int packetSize ()
 
Socket getSocket ()
 

Public Attributes

int field_74468_e
 

Static Public Attributes

static AtomicInteger field_74471_a = new AtomicInteger()
 
static AtomicInteger field_74469_b = new AtomicInteger()
 
static int[] field_74470_c = new int[256]
 
static int[] field_74467_d = new int[256]
 

Constructor & Destructor Documentation

net.minecraft.network.TcpConnection.TcpConnection ( ILogAgent  par1ILogAgent,
Socket  par2Socket,
String  par3Str,
NetHandler  par4NetHandler 
) throws IOException
net.minecraft.network.TcpConnection.TcpConnection ( ILogAgent  par1ILogAgent,
Socket  par2Socket,
String  par3Str,
NetHandler  par4NetHandler,
PrivateKey  par5PrivateKey 
) throws IOException

Member Function Documentation

void net.minecraft.network.TcpConnection.addToSendQueue ( Packet  par1Packet)

Adds the packet to the correct send queue (chunk data packets go to a separate queue).

Implements net.minecraft.network.INetworkManager.

void net.minecraft.network.TcpConnection.closeConnections ( )
Socket net.minecraft.network.TcpConnection.getSocket ( )
SocketAddress net.minecraft.network.TcpConnection.getSocketAddress ( )

Return the InetSocketAddress of the remote endpoint

Implements net.minecraft.network.INetworkManager.

void net.minecraft.network.TcpConnection.networkShutdown ( String  par1Str,
Object...  par2ArrayOfObj 
)

Shuts down the network with the specified reason. Closes all streams and sockets, spawns NetworkMasterThread to stop reading and writing threads.

Implements net.minecraft.network.INetworkManager.

int net.minecraft.network.TcpConnection.packetSize ( )

returns 0 for memoryConnections

Implements net.minecraft.network.INetworkManager.

void net.minecraft.network.TcpConnection.processReadPackets ( )

Checks timeouts and processes all pending read packets.

Implements net.minecraft.network.INetworkManager.

void net.minecraft.network.TcpConnection.serverShutdown ( )

Shuts down the server. (Only actually used on the server)

Implements net.minecraft.network.INetworkManager.

void net.minecraft.network.TcpConnection.setNetHandler ( NetHandler  par1NetHandler)

Sets the NetHandler for this NetworkManager. Server-only.

Implements net.minecraft.network.INetworkManager.

void net.minecraft.network.TcpConnection.wakeThreads ( )

Wakes reader and writer threads

Implements net.minecraft.network.INetworkManager.

Member Data Documentation

int [] net.minecraft.network.TcpConnection.field_74467_d = new int[256]
static
int net.minecraft.network.TcpConnection.field_74468_e
AtomicInteger net.minecraft.network.TcpConnection.field_74469_b = new AtomicInteger()
static
int [] net.minecraft.network.TcpConnection.field_74470_c = new int[256]
static
AtomicInteger net.minecraft.network.TcpConnection.field_74471_a = new AtomicInteger()
static

The documentation for this class was generated from the following file: