internal NatPunchModule(NetBase netBase, NetSocket socket) { _netBase = netBase; _socket = socket; _requestEvents = new Queue <RequestEventData>(); _successEvents = new Queue <SuccessEventData>(); }
internal NetPeer(NetBase peerListener, NetEndPoint remoteEndPoint) { _peerListener = peerListener; _id = remoteEndPoint.GetId(); _remoteEndPoint = remoteEndPoint; _avgRtt = 0; _rtt = 0; _pingSendTimer = 0; _reliableOrderedChannel = new ReliableChannel(this, true, _windowSize); _reliableUnorderedChannel = new ReliableChannel(this, false, _windowSize); _sequencedChannel = new SequencedChannel(this); _simpleChannel = new SimpleChannel(this); _packetPool = new Stack <NetPacket>(); _holdedFragments = new Dictionary <ushort, IncomingFragments>(); }
internal NatPunchModule(NetBase netBase, NetSocket socket) { _netBase = netBase; _requestEvents = new Queue<RequestEventData>(); _successEvents = new Queue<SuccessEventData>(); }
internal NetPeer(NetBase peerListener, NetEndPoint remoteEndPoint) { _peerListener = peerListener; _id = remoteEndPoint.GetId(); _remoteEndPoint = remoteEndPoint; _avgRtt = 0; _rtt = 0; _pingSendTimer = 0; _reliableOrderedChannel = new ReliableChannel(this, true, _windowSize); _reliableUnorderedChannel = new ReliableChannel(this, false, _windowSize); _sequencedChannel = new SequencedChannel(this); _simpleChannel = new SimpleChannel(this); _packetPool = new Stack<NetPacket>(); _holdedFragments = new Dictionary<ushort, IncomingFragments>(); _mergeData.Init(PacketProperty.Merged, NetConstants.PossibleMtu[NetConstants.PossibleMtu.Length - 1]); }
public NetSocket(NetBase.OnMessageReceived onMessageReceived) { _onMessageReceived = onMessageReceived; _buffer = _byteBuffer.AsBuffer(); }
public NetSocket(NetBase.OnMessageReceived onMessageReceived) { _onMessageReceived = onMessageReceived; }