-
Notifications
You must be signed in to change notification settings - Fork 0
security.SecureServer
The agutil.security module includes the SecureServer class, which is similar to the agutil.io.SocketServer class, but it returns SecureConnection instances instead of Socket instances.
-
SecureServer(port, address='', queue=3, password=None, rsabits=4096, childtimeout=3, childlogger=DummyLog) (constructor) Binds to port and accepts new connections. port, address, and queue work identically to
agutil.io.SocketServer(as theSecureServeruses aSocketServerinternally). password, rsabits, childtimeout, and childlogger set the password, rsabits, timeout, and logmethod arguments (respectively) to theSecureConnectionconstructor for each accepted connection. childlogger defaults toagutil.DummyLog(which does not log anything). childlogger may either be anagutil.Loggerclass, or a bound method returned byagutil.Logger.bindToSender(). -
SecureServer.accept() Waits for a connection and returns a new
SecureConnection -
SecureServer.close() Closes the underlying
SocketServer