Mercurial > silverbladetech
annotate 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 |
rev | line source |
---|---|
26 | 1 using System.Net.Sockets; |
2 using System.Text; | |
3 | |
4 namespace Client.Sockets | |
5 { | |
6 // State object for receiving data from remote device. | |
7 public class StateObject | |
8 { | |
9 // Size of receive buffer | |
10 public const int BufferSize = 256; | |
11 | |
12 // Receive buffer | |
13 public byte[] Buffer = new byte[BufferSize]; | |
14 | |
15 // Received data string | |
16 public StringBuilder Sb = new StringBuilder(); | |
17 | |
18 // Client socket | |
19 public Socket WorkSocket; | |
20 } | |
21 } |