comparison Messaging/Client/Sockets/StateObject.cs @ 26:045dac571339

Working on data binding to a user control
author adminsh@apollo
date Wed, 21 Mar 2012 15:39:53 +0000
parents
children
comparison
equal deleted inserted replaced
25:81f9b72a44ce 26:045dac571339
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 }