-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathClientData.cs
32 lines (23 loc) · 923 Bytes
/
ClientData.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Net.Sockets;
namespace MySocketLibrary
{
public class ClientData
{
public byte[] recvbuffer;
public Queue<byte> byteque = new Queue<byte>();
public bool dataphase = false; //For data included in message
public int datasize;
public object sendlock = new object();
public object disconnectlock = new object();
public string info = ""; //info
public Socket s; //The client socket
public bool authenicated = false; //Handshake done or not
public System.Diagnostics.Stopwatch timeout; //For timeout implementation
// public bool pinged = false;
}
}