// status delegates /// <summary> /// Initializes a new instance of the <see cref="EpicsChannel{DataType}"/> class. /// </summary> /// <param name="channelname"> /// The channel name. /// </param> /// <param name="CID"> /// The CID. /// </param> /// <param name="Client"> /// The client. /// </param> internal EpicsChannel(string channelname, int CID, EpicsClient Client) { this.name = channelname; this.client = Client; this.CID = (uint)CID; }
/// <summary> /// Initializes a new instance of the <see cref="EpicsClientUDPConnection"/> class. /// </summary> /// <param name="client"> /// The client. /// </param> /// <param name="port"> /// The port. /// </param> public EpicsClientUDPConnection(EpicsClient client, int port) : base(port) { this.Client = client; this.UDPSocket.SendBufferSize = client.Config.UDPBufferSize; this.UDPSocket.ReceiveBufferSize = client.Config.UDPBufferSize; }
/// <summary> /// Initializes a new instance of the <see cref="EpicsClientUDPConnection"/> class. /// </summary> /// <param name="client"> /// The client. /// </param> public EpicsClientUDPConnection(EpicsClient client) { this.Client = client; this.Client.Config.ConfigChanged += this.config_ConfigChanged; this.UDPSocket.SendBufferSize = client.Config.UDPBufferSize; this.UDPSocket.ReceiveBufferSize = client.Config.UDPBufferSize; // just be sure it's set this.wrapTargetList(this.Client.Config.ServerList.getStringList()); }
/// <summary> /// Initializes a new instance of the <see cref="EpicsClientTCPConnection"/> class. /// </summary> /// <param name="iep"> /// The iep. /// </param> /// <param name="client"> /// The client. /// </param> internal EpicsClientTCPConnection(IPEndPoint iep, EpicsClient client) : base(iep) { this.Client = client; this.TCPMaxSendSize = client.Config.TCPMaxSendSize; this.TCPSocket.ReceiveBufferSize = client.Config.TCPBufferSize; this.TCPSocket.SendBufferSize = client.Config.TCPBufferSize; this.Send(EpicsCodec.CTCPGreet); this.sent = true; }
/// <summary> /// Initializes a new instance of the <see cref="EpicsClientCodec"/> class. /// </summary> /// <param name="client"> /// The client. /// </param> public EpicsClientCodec(EpicsClient client) { this.client = client; }