- Oct 30, 2000
- 42,589
- 5
- 0
Presently, the app has a Listen socket on a unique port for data. Every app on the network knows what port to connect to via the IP of the target system.
I need to understand how to setup a UDP Listen socket on port x1000.
Should I just setup the socket like I do for a normal Listening socket but defined as UDP.
And then process the incoming Accept if a broadcast "connect" is detected.
Or do I just create a UDP socket without any specific target address using some special code?
If the app is to also to be able to broadcast out, the socket/port needs to be shared.
Broadcasts are intended to go out on x1000.
Will sharing the inbound/outboad be a problem. With broadcasts is there an actual socket connection setup between systems or just a socket is just pushing data out to any other socket that is listening on the defined common port.
Using MFC but any explanation will be able to be usable/helpful.
Hopefully my problem is described clear enough that some socket masters can assist.