public NetworkManager(Socket socket, string s, NetHandler nethandler) { sendQueueLock = new object(); m_isRunning = true; readPackets = Collections.synchronizedList(new ArrayList()); dataPackets = Collections.synchronizedList(new ArrayList()); chunkDataPackets = Collections.synchronizedList(new ArrayList()); m_isServerTerminating = false; isTerminating = false; terminationReason = ""; timeSinceLastRead = 0; sendQueueByteLength = 0; chunkDataSendCounter = 0; field_20175_w = 50; networkSocket = socket; remoteSocketAddress = socket.getRemoteSocketAddress(); netHandler = nethandler; socket.setTrafficClass(24); socketInputStream = new DataInputStream(socket.getInputStream()); socketOutputStream = new DataOutputStream(socket.getOutputStream()); readThread = new NetworkReaderThread(this, (new StringBuilder()).append(s).append(" read thread").toString()); writeThread = new NetworkWriterThread(this, (new StringBuilder()).append(s).append(" write thread").toString()); readThread.start(); writeThread.start(); }
public override void processPacket(NetHandler nethandler) { nethandler.handleVehicleSpawn(this); }
public override void processPacket(NetHandler nethandler) { nethandler.handlePlace(this); }
public override void processPacket(NetHandler nethandler) { nethandler.handleEntityTeleport(this); }
public override void processPacket(NetHandler nethandler) { nethandler.handleHealth(this); }
public override void processPacket(NetHandler nethandler) { nethandler.func_21002_a(this); }
public abstract void processPacket(NetHandler nethandler);
public override void processPacket(NetHandler nethandler) { nethandler.handleFlying(this); }
public override void processPacket(NetHandler nethandler) { nethandler.handleKickDisconnect(this); }
public override void processPacket(NetHandler nethandler) { nethandler.handleArmAnimation(this); }
public override void processPacket(NetHandler nethandler) { nethandler.handleMapChunk(this); }
public override void processPacket(NetHandler nethandler) { nethandler.handleBlockDig(this); }
public override void processPacket(NetHandler nethandler) { nethandler.handleLogin(this); }
public override void processPacket(NetHandler nethandler) { nethandler.handleUpdateTime(this); }
public override void processPacket(NetHandler nethandler) { nethandler.handleMultiBlockChange(this); }
public override void processPacket(NetHandler nethandler) { nethandler.handleCollect(this); }
public override void processPacket(NetHandler nethandler) { nethandler.handlePreChunk(this); }
public override void processPacket(NetHandler nethandler) { nethandler.handleSpawnPosition(this); }
public override void processPacket(NetHandler nethandler) { nethandler.handleCraftingGuiClosedPacked(this); }
public override void processPacket(NetHandler nethandler) { nethandler.handleNamedEntitySpawn(this); }
public override void processPacket(NetHandler nethandler) { nethandler.handlePickupSpawn(this); }
public override void processPacket(NetHandler nethandler) { nethandler.handleMovementTypePacket(this); }
public override void processPacket(NetHandler nethandler) { nethandler.handleRespawnPacket(this); }
public override void processPacket(NetHandler nethandler) { nethandler.handlePlayerInventory(this); }
public override void processPacket(NetHandler nethandler) { }
public void setNetHandler(NetHandler nethandler) { netHandler = nethandler; }
public override void processPacket(NetHandler nethandler) { nethandler.handleBlockItemSwitch(this); }
public override void processPacket(NetHandler nethandler) { nethandler.func_20005_a(this); }
public override void processPacket(NetHandler nethandler) { nethandler.handleEntity(this); }
public override void processPacket(NetHandler nethandler) { nethandler.handleHandshake(this); }