예제 #1
0
 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);
 }
예제 #2
0
 public ConnectionStateRequest(Stream s)
     : base(s)
 {
     if (s.ReadByte() != EIBMessages.DEFAULT_CHANNEL_ID || s.ReadByte() != 0)
     {
         throw new NotImplementedException();
     }
     control_endpoint = new HPAI(s);
 }
예제 #3
0
        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);
        }
예제 #4
0
 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;
 }
예제 #5
0
 public SearchRequest(EndPoint discovery)
     : base(EIBMessages.EIB_MC_SEARCH_REQUEST)
 {
     _discovery_endpoint = new HPAI(discovery);
 }
예제 #6
0
 public SearchRequest(Stream s)
     : base(s)
 {
     _discovery_endpoint = new HPAI(s);
 }
예제 #7
0
 public DisconnectRequest(HPAI ctrlEP) : base(EIBMessages.EIB_MC_DISCONNECT_REQUEST)
 {
     channel_id       = EIBMessages.DEFAULT_CHANNEL_ID;
     control_endpoint = ctrlEP;
 }
예제 #8
0
 public SearchRequest(EndPoint discovery)
     : base(EIBMessages.EIB_MC_SEARCH_REQUEST)
 {
     _discovery_endpoint = new HPAI(discovery);
 }
예제 #9
0
 public ConnectRequest(Stream s) : base(s)
 {
     control_endpoint = new HPAI(s);
     data_endpoint    = new HPAI(s);
     cri = new CRI(s);
 }
예제 #10
0
        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);
        }
예제 #11
0
 public SearchRequest(Stream s)
     : base(s)
 {
     _discovery_endpoint = new HPAI(s);
 }
예제 #12
0
 public DisconnectRequest(HPAI ctrlEP)
     : base(EIBMessages.EIB_MC_DISCONNECT_REQUEST)
 {
     channel_id = EIBMessages.DEFAULT_CHANNEL_ID;
     control_endpoint = ctrlEP;
 }
예제 #13
0
 public ConnectRequest(Stream s)
     : base(s)
 {
     control_endpoint = new HPAI(s);
     data_endpoint = new HPAI(s);
     cri = new CRI(s);
 }
예제 #14
0
 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);
 }
예제 #15
0
 public ConnectionStateRequest(Stream s)
     : base(s)
 {
     if (s.ReadByte() != EIBMessages.DEFAULT_CHANNEL_ID || s.ReadByte() != 0)
     {
         throw new NotImplementedException();
     }
     control_endpoint = new HPAI(s);
 }
예제 #16
0
 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;
 }