smith11235
02-03-2009, 02:29 PM
I may be wrong, but when trying to set up a client server following the example given in the VizHelp, Networking Reference, Multi User Environment script, the clean connect function they give for the client:
SERVER_NAME=viz.input('Enter Server Name')
while not viznet.client.connect(SERVER_NAME,port_in=14951,po rt_out=14950):
if viz.ask('Could not connect to ' + SERVER_NAME + ' would you like to try another?'):
SERVER_NAME=viz.input('Enter Server Name')
else:
viz.quit()
break
Does Not work.
The viznet.client.connect function just returns True whether or not there is a server even running. If someone has a solution to this please let me know.
Thank you
SERVER_NAME=viz.input('Enter Server Name')
while not viznet.client.connect(SERVER_NAME,port_in=14951,po rt_out=14950):
if viz.ask('Could not connect to ' + SERVER_NAME + ' would you like to try another?'):
SERVER_NAME=viz.input('Enter Server Name')
else:
viz.quit()
break
Does Not work.
The viznet.client.connect function just returns True whether or not there is a server even running. If someone has a solution to this please let me know.
Thank you