●方法定义
connect(self, timeout = 3, bakeaddress = '', bakeport = 0)
●方法参数说明
参数名称 |
参数说明 |
参数类型 |
默认值 |
timeout |
连接超时时间 |
数字型 |
3秒 |
bakaddress |
备用IP地址 |
数字型 |
空字符串 |
bakport |
备用连接端口 |
字符串型 |
0 |
●方法调用
self.myServer = server.Server('127.0.0.1', 5673, '', 5673)
self.myServer.connect()