예제 #1
0
            public PhyComAddress GetDstAddress()
            {
                PhyComAddress addr = new PhyComAddress();

                IntPtr value = ClientGooseControlBlock_getDstAddress_addr(self);

                MmsValue mmsValue = new MmsValue(value);

                byte[] dstMacAddr = mmsValue.getOctetString();

                dstMacAddr.CopyTo(addr.dstAddress, 0);

                addr.dstAddress = dstMacAddr;

                addr.appId        = ClientGooseControlBlock_getDstAddress_appid(self);
                addr.vlanId       = ClientGooseControlBlock_getDstAddress_vid(self);
                addr.vlanPriority = ClientGooseControlBlock_getDstAddress_priority(self);

                return(addr);
            }
예제 #2
0
 static extern void ClientGooseControlBlock_setDstAddress(IntPtr self, PhyComAddress value);
예제 #3
0
            public void SetDstAddress(PhyComAddress value)
            {
                ClientGooseControlBlock_setDstAddress(self, value);

                flagDstAddress = true;
            }