コード例 #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];
        }
コード例 #2
0
 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;
        }
コード例 #4
0
 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
     //
 }
コード例 #6
0
        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;
 }
コード例 #8
0
 public MEETInDespatch(string theName, MEETContainer theContainer, MEETPCQueue theQ) :
     base(theName, theContainer, theQ)
 {
 }
コード例 #9
0
 public MEETClock(string theName, MEETContainer theContainer) :
     base(theName, theContainer)
 {
 }