コード例 #1
0
ファイル: AsyncConnectionBase.cs プロジェクト: Mofsy/jinxbot
        internal AsyncConnectionBase(string server, int port, int perPacketSize, int bufferSize)
        {
            _server = server;
            _port = port;

            _storage = new NetworkBufferStorage(perPacketSize, bufferSize);
        }
コード例 #2
0
        internal AsyncConnectionBase(string server, int port, int perPacketSize, int bufferSize)
        {
            _server = server;
            _port   = port;

            _storage = new NetworkBufferStorage(perPacketSize, bufferSize);
        }
コード例 #3
0
ファイル: NetworkBuffer.cs プロジェクト: wjlafrance/jinxbot
        internal NetworkBuffer(byte[] storageBuffer, int startsAt, int length, NetworkBufferStorage parent)
        {
            Debug.Assert(storageBuffer != null);
            Debug.Assert(startsAt < storageBuffer.Length);
            Debug.Assert(startsAt % 8 == 0);
            Debug.Assert(length % 8 == 0);

            _parent           = parent;
            _underlyingBuffer = storageBuffer;
            _bufferStart      = startsAt;
            _bufferLength     = length;
        }
コード例 #4
0
ファイル: NetworkBuffer.cs プロジェクト: Mofsy/jinxbot
        internal NetworkBuffer(byte[] storageBuffer, int startsAt, int length, NetworkBufferStorage parent)
        {
            Debug.Assert(storageBuffer != null);
            Debug.Assert(startsAt < storageBuffer.Length);
            Debug.Assert(startsAt % 8 == 0);
            Debug.Assert(length % 8 == 0);

            _parent = parent;
            _underlyingBuffer = storageBuffer;
            _bufferStart = startsAt;
            _bufferLength = length;
        }