TCP connection used to communicate with the server and built by the client.
상속: IDisposable
 public CAServerChannel(CAServer cAServer, int serverId, int clientId, string channelName, CATcpConnection tcpConnection)
 {
     // TODO: Complete member initialization
     this.Server            = cAServer;
     this.ServerId          = serverId;
     this.ClientId          = clientId;
     this.ChannelName       = channelName;
     this.TcpConnection     = tcpConnection;
     tcpConnection.Closing += new EventHandler(tcpConnection_Closing);
     Property = "VAL";
     if (channelName.Contains("."))
     {
         string[] splitted = channelName.Split('.');
         Record   = Server.records[splitted[0]];
         Property = splitted[1].ToUpper();
     }
     else
     {
         Record = Server.records[ChannelName];
     }
     if (!Record.CanBeRemotlySet)
     {
         Access = AccessRights.ReadOnly;
     }
     TcpConnection.Send(Server.Filter.ChannelCreatedMessage(ClientId, ServerId, FindType(Record[Property].GetType()), Record.dataCount, Access));
 }
 public CAServerChannel(CAServer cAServer, int serverId, int clientId, string channelName, CATcpConnection tcpConnection)
 {
     // TODO: Complete member initialization
     this.Server = cAServer;
     this.ServerId = serverId;
     this.ClientId = clientId;
     this.ChannelName = channelName;
     this.TcpConnection = tcpConnection;
     tcpConnection.Closing += new EventHandler(tcpConnection_Closing);
     Property = "VAL";
     if (channelName.Contains("."))
     {
         string[] splitted = channelName.Split('.');
         Record = Server.records[splitted[0]];
         Property = splitted[1].ToUpper();
     }
     else
         Record = Server.records[ChannelName];
     if (!Record.CanBeRemotlySet)
         Access = AccessRights.ReadOnly;
     TcpConnection.Send(Server.Filter.ChannelCreatedMessage(ClientId, ServerId, FindType(Record), Record.dataCount, Access));
     //TcpConnection.Send(Server.Filter.ChannelCreatedMessage(ClientId, ServerId, FindType(Record[Property].GetType()), Record.dataCount, Access));
 }