Exemple #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();
 }
 public override void processPacket(NetHandler nethandler)
 {
     nethandler.handleVehicleSpawn(this);
 }
 public override void processPacket(NetHandler nethandler)
 {
     nethandler.handleVehicleSpawn(this);
 }
Exemple #4
0
 public override void processPacket(NetHandler nethandler)
 {
     nethandler.handlePlace(this);
 }
 public override void processPacket(NetHandler nethandler)
 {
     nethandler.handleEntityTeleport(this);
 }
Exemple #6
0
 public override void processPacket(NetHandler nethandler)
 {
     nethandler.handleHealth(this);
 }
Exemple #7
0
 public override void processPacket(NetHandler nethandler)
 {
     nethandler.func_21002_a(this);
 }
Exemple #8
0
 public abstract void processPacket(NetHandler nethandler);
Exemple #9
0
 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);
 }
Exemple #12
0
 public override void processPacket(NetHandler nethandler)
 {
     nethandler.handleMapChunk(this);
 }
Exemple #13
0
 public override void processPacket(NetHandler nethandler)
 {
     nethandler.handleBlockDig(this);
 }
Exemple #14
0
 public override void processPacket(NetHandler nethandler)
 {
     nethandler.handleLogin(this);
 }
Exemple #15
0
 public override void processPacket(NetHandler nethandler)
 {
     nethandler.handleUpdateTime(this);
 }
 public override void processPacket(NetHandler nethandler)
 {
     nethandler.handleMultiBlockChange(this);
 }
Exemple #17
0
 public override void processPacket(NetHandler nethandler)
 {
     nethandler.handleCollect(this);
 }
Exemple #18
0
 public override void processPacket(NetHandler nethandler)
 {
     nethandler.handleUpdateTime(this);
 }
Exemple #19
0
 public override void processPacket(NetHandler nethandler)
 {
     nethandler.handlePreChunk(this);
 }
 public override void processPacket(NetHandler nethandler)
 {
     nethandler.handleSpawnPosition(this);
 }
Exemple #21
0
 public override void processPacket(NetHandler nethandler)
 {
     nethandler.handleCraftingGuiClosedPacked(this);
 }
 public override void processPacket(NetHandler nethandler)
 {
     nethandler.handleNamedEntitySpawn(this);
 }
Exemple #23
0
 public override void processPacket(NetHandler nethandler)
 {
     nethandler.handlePickupSpawn(this);
 }
Exemple #24
0
 public override void processPacket(NetHandler nethandler)
 {
     nethandler.handleMovementTypePacket(this);
 }
Exemple #25
0
 public override void processPacket(NetHandler nethandler)
 {
     nethandler.handleCraftingGuiClosedPacked(this);
 }
Exemple #26
0
 public override void processPacket(NetHandler nethandler)
 {
     nethandler.handleRespawnPacket(this);
 }
Exemple #27
0
 public override void processPacket(NetHandler nethandler)
 {
     nethandler.handlePlayerInventory(this);
 }
Exemple #28
0
 public override void processPacket(NetHandler nethandler)
 {
 }
 public override void processPacket(NetHandler nethandler)
 {
     nethandler.handleMultiBlockChange(this);
 }
Exemple #30
0
 public void setNetHandler(NetHandler nethandler)
 {
     netHandler = nethandler;
 }
 public override void processPacket(NetHandler nethandler)
 {
     nethandler.handleKickDisconnect(this);
 }
 public override void processPacket(NetHandler nethandler)
 {
     nethandler.handleBlockItemSwitch(this);
 }
 public override void processPacket(NetHandler nethandler)
 {
     nethandler.handleBlockItemSwitch(this);
 }
Exemple #34
0
 public override void processPacket(NetHandler nethandler)
 {
 }
Exemple #35
0
 public override void processPacket(NetHandler nethandler)
 {
     nethandler.func_20005_a(this);
 }
Exemple #36
0
 public override void processPacket(NetHandler nethandler)
 {
     nethandler.handleCollect(this);
 }
Exemple #37
0
 public override void processPacket(NetHandler nethandler)
 {
     nethandler.handlePickupSpawn(this);
 }
Exemple #38
0
 public override void processPacket(NetHandler nethandler)
 {
     nethandler.handleEntity(this);
 }
 public override void processPacket(NetHandler nethandler)
 {
     nethandler.handleNamedEntitySpawn(this);
 }
Exemple #40
0
 public void setNetHandler(NetHandler nethandler)
 {
     netHandler = nethandler;
 }
Exemple #41
0
 public override void processPacket(NetHandler nethandler)
 {
     nethandler.handleHandshake(this);
 }
Exemple #42
0
 public override void processPacket(NetHandler nethandler)
 {
     nethandler.handleMovementTypePacket(this);
 }