Esempio n. 1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     client               = new NetComm.Client();
     client.Connected    += new NetComm.Client.ConnectedEventHandler(client_Connected);
     client.Disconnected += new NetComm.Client.DisconnectedEventHandler(client_Disconnected);
     client.DataReceived += new NetComm.Client.DataReceivedEventHandler(client_DataReceived);
 }
Esempio n. 2
0
 protected void Page_Load(object sender, EventArgs e)
 {
     Server = new NetComm.Host(2020);
     Server.StartConnection();
     client               = new NetComm.Client();
     client.Connected    += new NetComm.Client.ConnectedEventHandler(client_Connected);
     client.Disconnected += new NetComm.Client.DisconnectedEventHandler(client_Disconnected);
     client.DataReceived += new NetComm.Client.DataReceivedEventHandler(client_DataReceived);
 }
Esempio n. 3
0
        public void Init()
        {
            client = new NetComm.Client();
            client.Connect("127.0.0.1", 8080, name);

            client.NoDelay           = true;
            client.ReceiveBufferSize = 100;
            client.SendBufferSize    = 100;

            client.DataReceived += Client_DataReceived;
            client.Connected    += Client_Connected;
        }
Esempio n. 4
0
        private void init()
        {
            client = new Client();
            client.init();
            if (client.connect())
            {

            }
            else
            {
                btnSend.Enabled = false;
            }
        }