UDP Networking Basics (questions)

BlitzMax Forums/BlitzMax Programming/UDP Networking Basics (questions)

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Here is a page documenting the RecvFrom_() function call, if you want to do direct receiving of data from a socket and also get the UDP sender's IP and Port number (I haven't checked yet if the parameters match up with those in Blitz but I presume they do):

http://www.opengroup.org/onlinepubs/000095399/functions/recvfrom.html
http://www.mkssoftware.com/docs/man3/recvfrom.3.asp
http://msdn2.microsoft.com/en-us/library/ms740120(VS.85).aspx?PHPSESSID=gmkmem7inohg2q677fst152mr6

The only part I'm not sure about is the last parameter which is referred to as a `length` and does not mention anything about a port number??

There is some mention of the Select_() function here:

http://support.sas.com/documentation/onlinedoc/sasc/doc750/html/lr2/select.htm
http://www.codersource.net/winsock_tutorial_server_select_model.html
which seems to have something to do with testing if data is available for reading, like ReadAvail()

And here is some info about ioctl_():
http://www.docs.hp.com/en/36430-90007/ch04s45.html