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(); }
/// <summary> /// Binds the <code>ServerSocket</code> to a specific address /// (IP address and port number). /// </summary> public void bind(SocketAddress @endpoint, int @backlog) { }
/// <summary> /// Binds the <code>ServerSocket</code> to a specific address /// (IP address and port number). /// </summary> public void bind(SocketAddress @endpoint) { }
public virtual void leaveGroup(SocketAddress arg0, NetworkInterface arg1) { throw null; }
public MulticastSocket(SocketAddress value) { throw null; }
/// <summary> /// Connects this socket to the server with a specified timeout value. /// </summary> public void connect(SocketAddress endpoint, int timeout) { }
/// <summary> /// Connects this socket to the server. /// </summary> public void connect(SocketAddress endpoint) { }
public void setSocketAddress(SocketAddress value) { throw null; }
public DatagramPacket(sbyte[] arg0, int arg1, int arg2, SocketAddress arg3) { throw null; }