Hi!
On blitz3d I would use 2 UDP streams, one for receive (ex. port 2005) and one for sending (ex. port 2004). This allowed to send and receive from the same program, effectively creating a sort of peer to peer network. I would then broadcast all UDP messages by sending to xxx.xxx.xxx.255
Now I try to achieve the same with BNetEx from Vertex, I opened the examples which are all client/server, and I am totally confused the setremoteIP, setremoteport, setlocalport methods.
I tried setting local and remote port to the same number using only one stream for send and receive, but it didn't work completely, sometimes messages are "inetercepted" by a computer then the other ones don't get the message. It is not always the same computer that intercept it, so I don't get it.
I tried then making 2 UDP streams, one for send, one for receive, localport set to 2004 and 2005 respectively and I receive nothing...
Anyone has an example of a working send/receive UDP architecture, with boradcasting?
Thanks
On blitz3d I would use 2 UDP streams, one for receive (ex. port 2005) and one for sending (ex. port 2004). This allowed to send and receive from the same program, effectively creating a sort of peer to peer network. I would then broadcast all UDP messages by sending to xxx.xxx.xxx.255
Now I try to achieve the same with BNetEx from Vertex, I opened the examples which are all client/server, and I am totally confused the setremoteIP, setremoteport, setlocalport methods.
I tried setting local and remote port to the same number using only one stream for send and receive, but it didn't work completely, sometimes messages are "inetercepted" by a computer then the other ones don't get the message. It is not always the same computer that intercept it, so I don't get it.
I tried then making 2 UDP streams, one for send, one for receive, localport set to 2004 and 2005 respectively and I receive nothing...
Anyone has an example of a working send/receive UDP architecture, with boradcasting?
Thanks