protected virtual void Response(GPSPSession session) { if (_sendingBuffer != null) { session.SendAsync(_sendingBuffer); } }
/// <summary> /// Send a presence error /// </summary> /// <param name="session">The stream that will receive the error</param> /// <param name="errorCode">The error code</param> /// <param name="operationID">The operation id</param> public static void SendGPSPError(GPSPSession session, GPErrorCode errorCode, uint operationID) { string errorMsg = ErrorMsg.GetErrorMsg(errorCode); string sendingBuffer = string.Format(@"\error\\err\{0}\fatal\\errmsg\{1}\id\{2}\final\", (uint)errorCode, errorMsg, operationID); session.SendAsync(sendingBuffer); }