示例#1
0
		protected virtual void OnMessageArrived (SocketMessageEventArgs e)
		{
			MessageArrivedEventHandler handler = MessageArrived;
			if (handler != null) {
				handler (this, e);
			}
		}
示例#2
0
		private void WebSocket_OnMessage (object sender, MessageEventArgs e)
		{
			SocketMessageEventArgs eventArgs = new SocketMessageEventArgs ();
			eventArgs.Message = e.Data;
			OnMessageArrived (eventArgs);
		}
示例#3
0
文件: Peer.cs 项目: akonsand/Peer.Net
		/// <summary>
		/// Event fired when message arrived from the socket.
		/// </summary>
		/// <param name="sender">Sender.</param>
		/// <param name="e">Eevent Arguments</param>
		private void Socket_MessageArrived (object sender, SocketMessageEventArgs args)
		{
			HandleMessage (args.Message);
		}