view Messaging/Client/Sockets/StateObject.cs @ 27:96fdf58e05b4

Server working with sockets and rabbitmq
author adminsh@apollo
date Wed, 21 Mar 2012 19:00:59 +0000
parents 045dac571339
children
line wrap: on
line source

using System.Net.Sockets;
using System.Text;

namespace Client.Sockets
{
    // State object for receiving data from remote device.
    public class StateObject
    {
        // Size of receive buffer
        public const int BufferSize = 256;

        // Receive buffer
        public byte[] Buffer = new byte[BufferSize];

        // Received data string
        public StringBuilder Sb = new StringBuilder();

        // Client socket
        public Socket WorkSocket;
    }
}