Hello all,
Still struggling with my network code.
Basically, what i need is :
when server receive a connection on the special TCP rendez vous port,
instead of adding the connection (a tcp connection from the client )
if cListener.newConnectionAvailable():
rendezvous = PointerToConnection()
netAddress = NetAddress()
newConnection = PointerToConnection()
if cListener.getNewConnection(rendezvous,netAddress,newConnection):
newConnection = newConnection.p()
activeConnections.append(newConnection) # Remember connection
cReader.addConnection(newConnection) # Begin reading connection
return Task.cont
it creates 2 bi-directionnal UDP connection to the client that requested connection.
ex Client 1 make a TCP Connection to Server .
Server create a UDP connection u1 between port1 of Client 1 and port X1 of server for sending / receiving data
Server create a UDP connection u2 between port2 of Client 1 and port X2 of server for sending / receiving data
Questions:
1)Is it enough to for Client 1 to know server ip and Port X1,X2 to be able to create a u1_c UPD connection that listen and send on the u1 connection? or do i need a kind of handshake ?
-
how do i create an UPD connection in Panda that can both send and receive packet. Is it enough to create 1 UPD connection and add it both on a QueuedConnectionReader and a QueuedConnectionWriter
-
Can the connection rendez vous between client and server be initialized via a Client upd connection ? (from my understanding : NO)
Thanks for your input