Пример #1
0
 /// <summary>
 /// Sends the response.
 /// </summary>
 /// <param name="data">The data which will be sent.</param>
 public virtual void SendResponse(byte[] data)
 {
     SocketSession.SendResponse(data);
 }
Пример #2
0
 /// <summary>
 /// Sends the response.
 /// </summary>
 /// <param name="message">The message which will be sent.</param>
 /// <param name="paramValues">The parameter values.</param>
 public virtual void SendResponse(string message, params object[] paramValues)
 {
     SocketSession.SendResponse(string.Format(message, paramValues));
 }
Пример #3
0
 /// <summary>
 /// Sends the response.
 /// </summary>
 /// <param name="data">The data which will be sent.</param>
 /// <param name="offset">The offset.</param>
 /// <param name="length">The length.</param>
 public virtual void SendResponse(byte[] data, int offset, int length)
 {
     SocketSession.SendResponse(data, offset, length);
 }
Пример #4
0
 /// <summary>
 /// Sends the response.
 /// </summary>
 /// <param name="message">The message which will be sent.</param>
 public virtual void SendResponse(string message)
 {
     SocketSession.SendResponse(message);
 }
Пример #5
0
        /// <summary>
        /// Sends the response.
        /// </summary>
        /// <param name="message">The message which will be sent.</param>
        public virtual void SendResponse(string message)
        {
            var data = this.Charset.GetBytes(message);

            SocketSession.SendResponse(data, 0, data.Length);
        }