public ConnectRepsonse(EndPoint data_endpoint) : base(EIBMessages.EIB_MC_CONNECT_RESPONSE) { this.data_endpoint = new HPAI(data_endpoint); this.cri = new CRI(); status = EIBMessages.E_NO_ERROR; total_length += (ushort)(2 + HPAI.length + cri.length); }
public ConnectionStateRequest(Stream s) : base(s) { if (s.ReadByte() != EIBMessages.DEFAULT_CHANNEL_ID || s.ReadByte() != 0) { throw new NotImplementedException(); } control_endpoint = new HPAI(s); }
public DisconnectRequest(Stream s) : base(s) { channel_id = (byte)s.ReadByte(); resereved = (byte)s.ReadByte(); if (channel_id != EIBMessages.DEFAULT_CHANNEL_ID || resereved != 0) { throw new NotImplementedException(); } control_endpoint = new HPAI(s); }
public SearchResponse(EndPoint control, PhysicalAddress addr) : base(EIBMessages.EIB_MC_SEARCH_RESPONSE) { _control_endpoint = new HPAI(control); _desc = new DescriptionResponse(true, new EIBAddress("0/0/0"), "123456", IPAddress.Parse("224.0.23.12"), addr, "EIB Emulator v0.1"); total_length += HPAI.length; total_length += DescriptionResponse.dev_dib_structlength; total_length += _desc.supp_dib_structlength; }
public SearchRequest(EndPoint discovery) : base(EIBMessages.EIB_MC_SEARCH_REQUEST) { _discovery_endpoint = new HPAI(discovery); }
public SearchRequest(Stream s) : base(s) { _discovery_endpoint = new HPAI(s); }
public DisconnectRequest(HPAI ctrlEP) : base(EIBMessages.EIB_MC_DISCONNECT_REQUEST) { channel_id = EIBMessages.DEFAULT_CHANNEL_ID; control_endpoint = ctrlEP; }
public ConnectRequest(Stream s) : base(s) { control_endpoint = new HPAI(s); data_endpoint = new HPAI(s); cri = new CRI(s); }