private void session_OnAnyReceive(object sender, XmlProtocolElement element) { logForm.Log("RECV: "+element.ToString()); }
private void session_OnAnySend(object sender, XmlProtocolElement element) { logForm.Log("SENT: "+element.ToString()); }
/// <summary> /// Sends XML to the server. Raises OnAnySend event. /// </summary> /// <param name="e">The XML to send</param> private void send(XmlProtocolElement e) { startSending(e.ToString()); if(OnAnySend != null) OnAnySend(this, e); }