BlitsMe.TransportEmulator.EndpointForm.EndpointForm C# (CSharp) Method

EndpointForm() public method

public EndpointForm ( TransportForm transportForm, ITransportManager transportManager, bool client ) : System
transportForm TransportForm
transportManager ITransportManager
client bool
return System
        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();
        }