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); }
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); }
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; }
private void init() { client = new Client(); client.init(); if (client.connect()) { } else { btnSend.Enabled = false; } }