Lines Matching refs:port
129 # Standard port used by NNTP servers
315 def __init__(self, host, port=NNTP_PORT, user=None, password=None,
320 - port: port to connect to (default the standard NNTP port)
336 self.port = port
401 sys.audit("nntplib.connect", self, self.host, self.port)
402 return socket.create_connection((self.host, self.port), timeout)
1020 def __init__(self, host, port=NNTP_SSL_PORT,
1025 in default port and the `ssl_context` argument for SSL connections.
1028 super().__init__(host, port, user, password, readermode,
1054 parser.add_argument('-p', '--port', default=-1, type=int,
1055 help='NNTP port number (default: %s / %s)' % (NNTP_PORT, NNTP_SSL_PORT))
1062 port = args.port
1064 if port == -1:
1065 port = NNTP_PORT
1066 s = NNTP(host=args.server, port=port)
1068 if port == -1:
1069 port = NNTP_SSL_PORT
1070 s = NNTP_SSL(host=args.server, port=port)