示例#1
0
	/// <summary>
	/// Send a request to the server.
	/// </summary>
	/// <param name="request">The request to send.</param>
	public void SendRequest(PsRequest request)
	{
		_server.Send(request);
	}
示例#2
0
 /// <summary>
 /// Send a PsRequest to the server.
 /// </summary>
 /// <param name="request"></param>
 public void Send(PsRequest request)
 {
     if (_socket.Connected)
     {
         byte[] data = request.GenerateMessage();
         
         _socket.BeginSend(data, 0, data.Length, 0, new AsyncCallback(SendCallback), _socket);
     }
 }