/// <summary> /// Re-initilize the IGB web server service. /// </summary> /// <param name="isPublic">Is publicly available</param> /// <param name="port">New TCP/IP port</param> public void Reset(bool isPublic, int port) { m_isPublic = isPublic; IgbServerPort = port; Stop(); m_listener = null; CreateListener(); }
/// <summary> /// Re-initilize the IGB web server service /// </summary> /// <param name="isPublic">Is publicly available</param> /// <param name="port">New TCP/IP port</param> public void Reset(bool isPublic, int port) { m_isPublic = isPublic; m_port = port; Stop(); m_listener = null; CreateListener(); }
/// <summary> /// Creates the listener bound to an address and port, wires up the events. /// </summary> private void CreateListener() { m_listener = new IgbTcpListener(new IPEndPoint(AddressToBind(), IgbServerPort)); m_listener.ClientConnected += OnClientConnected; }
/// <summary> /// Creates the listener bound to an address and port, wires up the events /// </summary> private void CreateListener() { m_listener = new IgbTcpListener(new IPEndPoint(AddressToBind(), m_port)); m_listener.ClientConnected += new EventHandler <ClientConnectedEventArgs>(OnClientConnected); }
/// <summary> /// Creates the listener bound to an address and port, wires up the events /// </summary> private void CreateListener() { m_listener = new IgbTcpListener(new IPEndPoint(AddressToBind(), m_port)); m_listener.ClientConnected += new EventHandler<ClientConnectedEventArgs>(OnClientConnected); }