Example #1
0
 protected virtual void Response(GPSPSession session)
 {
     if (_sendingBuffer != null)
     {
         session.SendAsync(_sendingBuffer);
     }
 }
Example #2
0
        /// <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);
        }