mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 10:22:45 -04:00
*** empty log message ***
This commit is contained in:
parent
8951483ebf
commit
77c8759668
@ -3,6 +3,7 @@
|
|||||||
from PandaModules import *
|
from PandaModules import *
|
||||||
from TaskManagerGlobal import *
|
from TaskManagerGlobal import *
|
||||||
from MsgTypes import *
|
from MsgTypes import *
|
||||||
|
from ShowBaseGlobal import *
|
||||||
import Task
|
import Task
|
||||||
import DirectNotifyGlobal
|
import DirectNotifyGlobal
|
||||||
import ClientDistClass
|
import ClientDistClass
|
||||||
@ -43,8 +44,11 @@ class ClientRepository(DirectObject.DirectObject):
|
|||||||
|
|
||||||
def connect(self, serverName, serverPort):
|
def connect(self, serverName, serverPort):
|
||||||
self.qcm=QueuedConnectionManager()
|
self.qcm=QueuedConnectionManager()
|
||||||
|
gameServerTimeoutMs = base.config.GetInt("game-server-timeout-ms",
|
||||||
|
20000)
|
||||||
|
# A big old 20 second timeout.
|
||||||
self.tcpConn = self.qcm.openTCPClientConnection(
|
self.tcpConn = self.qcm.openTCPClientConnection(
|
||||||
serverName, serverPort, 1000)
|
serverName, serverPort, gameServerTimeoutMs)
|
||||||
# Test for bad connection
|
# Test for bad connection
|
||||||
if self.tcpConn == None:
|
if self.tcpConn == None:
|
||||||
return None
|
return None
|
||||||
|
Loading…
x
Reference in New Issue
Block a user