Beispiel #1
0
        public PeerTransmission(Line line, SegmentStream stream)
        {
            _Line = line;

            _SendBytes = new List <byte>();
            _Stream    = stream;
        }
Beispiel #2
0
 public PeerTransmission(ConcurrentQueue <Task> send_tasks, Line line, Task read_task)
 {
     _SendTasks = send_tasks;
     _Line      = line;
     _ReadTask  = read_task;
     _SendBytes = new List <byte>();
     _Stream    = new SegmentStream(new SocketMessage[0]);
 }
Beispiel #3
0
        private Socket(Line line)
        {
            _Stream = new SegmentStream(new SocketMessage[0]);



            _Line    = line;
            _Machine = new StatusMachine <Timestamp>();
        }