JimmyL
-
Posts
2 -
Joined
-
Last visited
Content Type
Profiles
Events
Forums
Blogs
Downloads
Posts posted by JimmyL
-
-
Hi,
I'm having a little trouble with opening multiple sockets. On a client ds, I have a udp socket talking to a server ds, while that's happening I want to open a tcp socket, connect to a server and send a packet. When I do this, it seems that the udp socket becomes invalid, which wouldn't be much of a problem if the client wasn't behind a router(or had port forwarding turned on), since I could recreate a udp socket and the server would continue sending to the old addr/port(I'm doing this workaround now on the server machines and it works fine).
Any clue what I could be doing wrong? or if there's a bug in the libs?
Thanks,
Jimmy
Problem with simultaneous UDP and TCP sockets.
in DS Hacks [/ds]
Posted
Ok, good to know you don't think it's in the lib. I'll search through my code on the weekend to see if I can find something. Knowing me, I probably left a variable uninitialized or something...
and as a sidetrack which I should probably open a new thread for, but does your lib support broadcast sockets/packets? on the pc I would call setsockopt( BroadcastSock, SOL_SOCKET, SO_BROADCAST, ... but setsockopt in your lib is set to just return 0.
Jimmy