Specifies the basic methods and properties of a Client object. This is an abstract class and must be inherited.
The Client class provides an abstract base class that represents a connection to a local client and a remote server. Descendant classes further specify the protocol that is used between those two connections.
Inheritance: IDisposable
示例#1
0
 ///<summary>Removes the specified Client from the client list.</summary>
 ///<param name="client">The client to remove from the client list.</param>
 protected void RemoveClient(Client client)
 {
     Clients.Remove(client);
 }
示例#2
0
	///<summary>Removes the specified Client from the client list.</summary>
	///<param name="client">The client to remove from the client list.</param>
	protected void RemoveClient(Client client) {
		Clients.Remove(client);
	}
示例#3
0
 ///<summary>Adds the specified Client to the client list.</summary>
 ///<remarks>A client will never be added twice to the list.</remarks>
 ///<param name="client">The client to add to the client list.</param>
 protected void AddClient(Client client)
 {
     if (Clients.IndexOf(client) == -1)
     Clients.Add(client);
 }
示例#4
0
	///<summary>Adds the specified Client to the client list.</summary>
	///<remarks>A client will never be added twice to the list.</remarks>
	///<param name="client">The client to add to the client list.</param>
	protected void AddClient(Client client) {
		if (Clients.IndexOf(client) == -1)
			Clients.Add(client);
	}