internal keyValue <clientType, int> Remove() { clientType client = Client.GetRemove(); int count = Count; return(new keyValue <clientType, int>(client, count)); }
public ServerQTClient(BaseServerManager _manager, TcpClient _client, clientType _type) : base(_client, _type) { manager = _manager; eventHandler = new ServerEventHandler(this); onMessageRecieved += handleMessage; onMessageSent += handleSentMessage; }
internal clientType GetRemove() { clientType client = Client; Client = null; ++Identity; return(client); }
/// <summary> /// TCP调用客户端调用错误 /// </summary> /// <param name="identity">验证编号</param> /// <returns>开始错误时间</returns> internal keyValue <clientType, keyValue <host, int> > Error(int identity) { if (Client.Identity == identity) { clientType client = Client.GetRemove(); return(new keyValue <clientType, keyValue <host, int> >(client, new keyValue <host, int>(Host, Count - 1))); } return(default(keyValue <clientType, keyValue <host, int> >)); }
internal keyValue <host, int> Remove(clientType client) { if (Client.Client == client) { Client.Remove(); return(new keyValue <host, int>(Host, Count)); } return(default(keyValue <host, int>)); }
/// <summary> /// 重置TCP调用客户端 /// </summary> /// <param name="host">TCP调用端口信息</param> /// <param name="client">TCP调用客户端</param> /// <returns>TCP调用客户端+未完成处理数量</returns> internal keyValue <clientType, int> ReSet(ref host host, clientType client) { if (Client.Client != null && Host.Equals(host)) { clientType removeClient = Client.Client; int count = Count; Client.Set(client); Count = 0; return(new keyValue <clientType, int>(removeClient, count)); } return(default(keyValue <clientType, int>)); }
public BaseQTClient(TcpClient _client, clientType _clientType) { client = _client; type = _clientType; queuedMessages = new List <QTMessage>(); awaitingResponse = new Dictionary <string, QTResponsableMessage>(); onMessageRecieved += debugRecievedMessage; onMessageSent += debugSentMessage; onConnectionClosed += debugConnectionClosed; thread = new NetworkStreamThread(this); connectionIP = ((IPEndPoint)client.Client.RemoteEndPoint).Address.ToString(); }
internal void Set(ref host host, clientType client) { Client.Client = client; Host = host; Count = 0; }
internal void Set(ref host host, clientType client, int index) { Client.Set(client, index); Host = host; Count = 0; }
internal void Remove() { Client = null; ++Identity; }
internal void Set(clientType client) { Client = client; ++Identity; }
internal void Set(clientType client, int index) { Client = client; Index = index; }
public Client(string name, clientType type) { this.Name = name; this.Type = type; }
public MyUdpClient(clientType CliType) { this.cliType = CliType; }
public sampleTcpUdpClient1(clientType CliType) { this.cliType = CliType; }
public Program(clientType CliType) { this.cliType = CliType; }