Exemplo n.º 1
0
        public LBMRcvReceiver(bool verbose, bool end_on_eos, bool summary, LBMObjectRecyclerBase objRec)
        {
            _verbose    = verbose;
            _end_on_eos = end_on_eos;
            _summary    = summary;
            LBMReceiverCallback cb = new LBMReceiverCallback(onReceive);

            SDMsg     = new LBMSDMessage();
            _recycler = objRec;
        }
Exemplo n.º 2
0
        private static void CreateSDMessage()
        {
            try {
                // Create an SDM message and add several fields to the message
                SDMsg = new LBMSDMessage();

                // The sequence number is a specific fields which is updated as the message is sent
                LBMSDMFieldUint64 seqfield = new LBMSDMFieldUint64("Sequence Number", 0UL);
                SDMsg.add(seqfield);

                // Some other field types demonstrating SDM Fields.
                LBMSDMFieldUint16 int16bitfield = new LBMSDMFieldUint16("16 Bit Unsigned Int", 16 << 8);
                SDMsg.add(int16bitfield);

                LBMSDMFieldString stringfield = new LBMSDMFieldString("Application Name", "lbmsrc");
                SDMsg.add(stringfield);
            }
            catch (LBMSDMException sdme)
            {
                System.Console.Out.WriteLine("Failed to create the SDM message:" + sdme);
                System.Console.Out.Flush();
            }
        }