示例#1
0
		private void session_OnAnyReceive(object sender, XmlProtocolElement element)
		{
			logForm.Log("RECV: "+element.ToString());
		}
示例#2
0
		private void session_OnAnySend(object sender, XmlProtocolElement element)
		{
			logForm.Log("SENT: "+element.ToString());
		}
示例#3
0
		/// <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);
		}