/// <summary> /// Send a request to the server. /// </summary> /// <param name="request">The request to send.</param> public void SendRequest(PsRequest request) { _server.Send(request); }
/// <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); } }