Exemplo n.º 1
0
 public SocketListener(ISocketStreamFormatter <TFrame> formatter, int port, SocketQualityOfService qualityOfService = SocketQualityOfService.LowLatency)
 {
     _requestedPort = port.ToString();
     _formatter     = formatter;
     _listener      = new StreamSocketListener();
     _listener.Control.QualityOfService = qualityOfService;
     _listener.ConnectionReceived      += ConnectionReceived;
     DataRecieved += async x => { await Task.Yield(); };
 }
Exemplo n.º 2
0
 public SocketListener(ISocketStreamFormatter <TFrame> formatter, SocketQualityOfService qualityOfService = SocketQualityOfService.LowLatency)
     : this(formatter, 0, qualityOfService)
 {
 }
Exemplo n.º 3
0
 public SocketClient(int port, ISocketStreamFormatter <T> formatter)
 {
     LocalPort  = port;
     _formatter = formatter;
 }