Inheritance: TcpTransportListener
 public EndpointForm(TransportForm transportForm, ITransportManager transportManager, bool client)
 {
     InitializeComponent();
     _transportForm      = transportForm;
     _transportManager   = transportManager;
     _client             = client;
     _dataStreamListener = new DataStreamListener("fubar", _transportManager, this);
     _dataStreamListener.ConnectionAccepted += delegate
     {
         recvBuffer = new byte[0];
         Invoke(new Action(() => { inBytes.Text = "0"; }));
     };
     _dataStreamListener.ConnectionClosed += delegate(object sender, NamedConnectionEventArgs args)
     {
         setMd5Sum();
     };
     _dataStreamListener.Listen();
     rand = new Random();
 }
Exemple #2
0
 public EndpointForm(TransportForm transportForm, ITransportManager transportManager, bool client)
 {
     InitializeComponent();
     _transportForm = transportForm;
     _transportManager = transportManager;
     _client = client;
     _dataStreamListener = new DataStreamListener("fubar", _transportManager, this);
     _dataStreamListener.ConnectionAccepted += delegate
         {
             recvBuffer = new byte[0];
             Invoke(new Action(() => { inBytes.Text = "0"; }));
         };
     _dataStreamListener.ConnectionClosed += delegate(object sender, NamedConnectionEventArgs args)
         {
             setMd5Sum();
         };
     _dataStreamListener.Listen();
     rand = new Random();
 }