コード例 #1
0
ファイル: SimpleClient.py プロジェクト: makeittotop/py_queue
    def __init__(self, address, blocking=1, timeout=15):
        """Initialize an object with an address and an optional
        blocking flag."""

        self.header  = ''
        self.timeout = timeout
        ClientServerSocket.__init__(self, address, blocking=blocking)
コード例 #2
0
    def __init__(self, address, blocking=1, timeout=15):
        """Initialize an object with an address and an optional
        blocking flag."""

        self.header = ''
        self.timeout = timeout
        ClientServerSocket.__init__(self, address, blocking=blocking)
コード例 #3
0
ファイル: GenericClient.py プロジェクト: makeittotop/py_queue
    def __init__(self, address, timeout=TimeoutInterval, keepalive=0,
                 **kwargs):
        """Initialize the object by setting an authenticated flag to
        keep track of whether or not the connection has been authenticated
        yet or not."""

        self.authenticated = 0L
        self.timeout       = timeout
        self.keepalive     = keepalive
        self.authMsgSent   = 0
        # the actual address will be decided when open is called
        ClientServerSocket.__init__(self, address, **kwargs)
コード例 #4
0
ファイル: GenericClient.py プロジェクト: makeittotop/py_queue
    def __init__(self,
                 address,
                 timeout=TimeoutInterval,
                 keepalive=0,
                 **kwargs):
        """Initialize the object by setting an authenticated flag to
        keep track of whether or not the connection has been authenticated
        yet or not."""

        self.authenticated = 0L
        self.timeout = timeout
        self.keepalive = keepalive
        self.authMsgSent = 0
        # the actual address will be decided when open is called
        ClientServerSocket.__init__(self, address, **kwargs)