示例#1
0
文件: Packet.cs 项目: dzamkov/DUIP
 public _SendStream(int ChunkSize, OutTerminal Terminal)
 {
     this._ChunkSize = ChunkSize;
     this._Terminal = Terminal;
     this._Current = new _Chunk
     {
         Data = new byte[ChunkSize],
         Initial = true
     };
 }
示例#2
0
文件: UDPPeer.cs 项目: dzamkov/DUIP
 internal UDPPeer(UDPHubSettings Settings, IPEndPoint EndPoint, int SequenceNumber, int AcknowledgementNumber)
 {
     this._Settings = Settings;
     this._EndPoint = EndPoint;
     this._InTerminal = new InTerminal(AcknowledgementNumber);
     this._OutTerminal = new OutTerminal(SequenceNumber);
 }