Пример #1
0
        // public UdpListenerThread(MEETNode node, MEETIFace iface)
        //	: this(node, iface, UDPLISTENER_DEFAULT_PORT) {}

        public MEETUdpSockListener(
            string theName,
            MEETContainer theContainer,
            MEETSockConnection conn,
            MEETPCQueue meetQ
            ) : base(theName, theContainer, conn, meetQ)
        {
            buffer = new byte[UDP_BUF_SIZE];
        }
 public MEETSockSender(
     string theName,
     MEETContainer theContainer,
     MEETSockConnection conn,
     MEETPCQueue inputQ
     ) : base(theName, theContainer, inputQ)
 {
     m_conn = conn;
 }
Пример #3
0
        // public UdpListenerThread(MEETNode node, MEETIFace iface)
        //	: this(node, iface, UDPLISTENER_DEFAULT_PORT) {}

        public MEETSockListener(
            string theName,
            MEETContainer theContainer,
            MEETSockConnection conn,
            MEETPCQueue recvQ
            ) : base(theName, theContainer)
        {
            m_conn  = conn;
            m_recvQ = recvQ;
        }
 public MEETTcpSockSender(
     string theName,
     MEETContainer theContainer,
     MEETSockConnection conn,
     MEETPCQueue inputQ) : base(theName, theContainer, conn, inputQ)
 {
     buffer = new byte[1400];
     ms     = new MemoryStream(buffer);
     bw     = new BinaryWriter(ms);
     bw.Write(MEETPacket.MEET_MAGIC);
 }
Пример #5
0
 public MEETTcpSockListener(
     string theName,
     MEETContainer theContainer,
     MEETSockConnection conn,
     MEETPCQueue meetQ
     ) : base(theName, theContainer, conn, meetQ)
 {
     //
     // TODO: Add constructor logic here
     //
 }
        public MEETModule(string theName, MEETContainer theContainer)
        {
            m_name = theName;
            if (!theContainer.AddModule(this))
            {
                // leave m_parent as null
                return;
            }

            m_parent = theContainer;
            m_status = ModStatus.NEW;

            try {
                m_thread      = new Thread(new ThreadStart(run));
                m_thread.Name = m_name;
            }
            catch (Exception ex) {
                m_status   = ModStatus.STOPPED;
                m_errorSrc = ex;
                m_parent.WriteLog(LogLevel.ERROR, String.Format("{0} {1}: {2}",
                                                                m_name, m_status, m_errorSrc.ToString()));
                return;
            }
        }
Пример #7
0
 public MEETQModule(string theName, MEETContainer theContainer, MEETPCQueue q) :
     base(theName, theContainer)
 {
     m_inputQ = q;
 }
 public MEETInDespatch(string theName, MEETContainer theContainer, MEETPCQueue theQ) :
     base(theName, theContainer, theQ)
 {
 }
 public MEETClock(string theName, MEETContainer theContainer) :
     base(theName, theContainer)
 {
 }