protected void OnClientConnected(AsyncTCPClientEventArgs e, object data) { EventHandler <AsyncTCPClientEventArgs> handler = ClientConnected; if (handler != null) { handler(data, e); } }
protected void OnDataSend(AsyncTCPClientEventArgs e, object data) { EventHandler <AsyncTCPClientEventArgs> handler = DataSend; if (handler != null) { handler(data, e); } }
protected void OnOtherException(AsyncTCPClientEventArgs e, object data) { EventHandler <AsyncTCPClientEventArgs> handler = OtherException; if (handler != null) { handler(data, e); } }