Thread View: comp.unix.programmer
1 messages
1 total messages
Started by Mark Lawrence
Fri, 19 Oct 1990 16:48
Sending AF_INET UDP DataGrams to multiple destinations
Author: Mark Lawrence
Date: Fri, 19 Oct 1990 16:48
Date: Fri, 19 Oct 1990 16:48
13 lines
1027 bytes
1027 bytes
I've written a function which sends an opaque data packet via AF_INET/UDP using the sendto() function to potentially different destinations, i.e., port number will vary from invocation to invocation. Currently, I check on every invocation to see if the port number to send to is different and if so, close the socket and re-open (using the socket() function). Is this really necessary? I set it up like this because I was afraid that the lowerlevel code would get confused if I used the same socket descriptor but different port numbers in the sendto() call. -- mark@DRD.Com uunet!apctrc!drd!mark$B!J%^!<%/!!!&%m!<%l%s%9!K(B
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads