Exemplo n.º 1
0
        // Incoming data from the client.
        //public static string data = null;

        public SynchronousSocketListener(TcpIpPortParam tcpParam, IAbort abort, IPrinterChange ipc)
        {
            LogWriter.WriteLog(new string[] { string.Format("SynchronousSocketListener") }, true);
            m_TcpIpPortParam = tcpParam;
            m_IAbort         = abort;
            m_IPrinterChange = ipc;
            cachePrinter     = new CachePrinter(ipc);
        }
Exemplo n.º 2
0
        public PortManager(IPrinterChange ipc)
        {
            //
            // TODO: Add constructor logic here
            //
            m_IPrinterChange = ipc;
            TcpIpPortParam param = new TcpIpPortParam();
            IAbort         abort = new IAbort();

            m_PipePort = new PipePort(m_IPrinterChange);
#if OPEN_TCPIP
            m_TcpPort = new SynchronousSocketListener(param, abort, m_IPrinterChange);
#endif
            m_bPipePortOpen = false;
        }