Пример #1
0
 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();
 }
Пример #2
0
 public override void processPacket(NetHandler nethandler)
 {
     nethandler.handleVehicleSpawn(this);
 }
Пример #3
0
 public override void processPacket(NetHandler nethandler)
 {
     nethandler.handleVehicleSpawn(this);
 }
Пример #4
0
 public override void processPacket(NetHandler nethandler)
 {
     nethandler.handlePlace(this);
 }
Пример #5
0
 public override void processPacket(NetHandler nethandler)
 {
     nethandler.handleEntityTeleport(this);
 }
Пример #6
0
 public override void processPacket(NetHandler nethandler)
 {
     nethandler.handleHealth(this);
 }
Пример #7
0
 public override void processPacket(NetHandler nethandler)
 {
     nethandler.func_21002_a(this);
 }
Пример #8
0
 public abstract void processPacket(NetHandler nethandler);
Пример #9
0
 public override void processPacket(NetHandler nethandler)
 {
     nethandler.handleFlying(this);
 }
Пример #10
0
 public override void processPacket(NetHandler nethandler)
 {
     nethandler.handleKickDisconnect(this);
 }
Пример #11
0
 public override void processPacket(NetHandler nethandler)
 {
     nethandler.handleArmAnimation(this);
 }
Пример #12
0
 public override void processPacket(NetHandler nethandler)
 {
     nethandler.handleMapChunk(this);
 }
Пример #13
0
 public override void processPacket(NetHandler nethandler)
 {
     nethandler.handleBlockDig(this);
 }
Пример #14
0
 public override void processPacket(NetHandler nethandler)
 {
     nethandler.handleLogin(this);
 }
Пример #15
0
 public override void processPacket(NetHandler nethandler)
 {
     nethandler.handleUpdateTime(this);
 }
Пример #16
0
 public override void processPacket(NetHandler nethandler)
 {
     nethandler.handleMultiBlockChange(this);
 }
Пример #17
0
 public override void processPacket(NetHandler nethandler)
 {
     nethandler.handleCollect(this);
 }
Пример #18
0
 public override void processPacket(NetHandler nethandler)
 {
     nethandler.handleUpdateTime(this);
 }
Пример #19
0
 public override void processPacket(NetHandler nethandler)
 {
     nethandler.handlePreChunk(this);
 }
Пример #20
0
 public override void processPacket(NetHandler nethandler)
 {
     nethandler.handleSpawnPosition(this);
 }
Пример #21
0
 public override void processPacket(NetHandler nethandler)
 {
     nethandler.handleCraftingGuiClosedPacked(this);
 }
Пример #22
0
 public override void processPacket(NetHandler nethandler)
 {
     nethandler.handleNamedEntitySpawn(this);
 }
Пример #23
0
 public override void processPacket(NetHandler nethandler)
 {
     nethandler.handlePickupSpawn(this);
 }
Пример #24
0
 public override void processPacket(NetHandler nethandler)
 {
     nethandler.handleMovementTypePacket(this);
 }
Пример #25
0
 public override void processPacket(NetHandler nethandler)
 {
     nethandler.handleCraftingGuiClosedPacked(this);
 }
Пример #26
0
 public override void processPacket(NetHandler nethandler)
 {
     nethandler.handleRespawnPacket(this);
 }
Пример #27
0
 public override void processPacket(NetHandler nethandler)
 {
     nethandler.handlePlayerInventory(this);
 }
Пример #28
0
 public override void processPacket(NetHandler nethandler)
 {
 }
Пример #29
0
 public override void processPacket(NetHandler nethandler)
 {
     nethandler.handleMultiBlockChange(this);
 }
Пример #30
0
 public void setNetHandler(NetHandler nethandler)
 {
     netHandler = nethandler;
 }
Пример #31
0
 public override void processPacket(NetHandler nethandler)
 {
     nethandler.handleKickDisconnect(this);
 }
Пример #32
0
 public override void processPacket(NetHandler nethandler)
 {
     nethandler.handleBlockItemSwitch(this);
 }
Пример #33
0
 public override void processPacket(NetHandler nethandler)
 {
     nethandler.handleBlockItemSwitch(this);
 }
Пример #34
0
 public override void processPacket(NetHandler nethandler)
 {
 }
Пример #35
0
 public override void processPacket(NetHandler nethandler)
 {
     nethandler.func_20005_a(this);
 }
Пример #36
0
 public override void processPacket(NetHandler nethandler)
 {
     nethandler.handleCollect(this);
 }
Пример #37
0
 public override void processPacket(NetHandler nethandler)
 {
     nethandler.handlePickupSpawn(this);
 }
Пример #38
0
 public override void processPacket(NetHandler nethandler)
 {
     nethandler.handleEntity(this);
 }
Пример #39
0
 public override void processPacket(NetHandler nethandler)
 {
     nethandler.handleNamedEntitySpawn(this);
 }
Пример #40
0
 public void setNetHandler(NetHandler nethandler)
 {
     netHandler = nethandler;
 }
Пример #41
0
 public override void processPacket(NetHandler nethandler)
 {
     nethandler.handleHandshake(this);
 }
Пример #42
0
 public override void processPacket(NetHandler nethandler)
 {
     nethandler.handleMovementTypePacket(this);
 }