Ejemplo n.º 1
0
        // Creates a new server settings with the given parameters
        public static AServerSettings create(IPAddress ip, int port, int pmMaxSize)
        {
            AServerSettings	settings=	new AServerSettings();

            settings.ipAddress=	ip;
            settings.portNum=	port;
            settings.maxSize=	pmMaxSize;

            return settings;
        }
Ejemplo n.º 2
0
 // Sets the server's settings
 public void setSettings(AServerSettings settings)
 {
     listener=	new TcpListener(settings.ipAddress, settings.portNum);
     maxSize=	settings.maxSize;
 }