Moved pick_port_bind() to the libcommon common code so both client and server can use it. Client can now specify a range of ephemeral ports (transaction id)

This commit is contained in:
Zack Bartel 2006-11-13 17:33:29 -08:00
parent 5f64014add
commit ec5973ac5f
4 changed files with 56 additions and 34 deletions

View file

@ -74,3 +74,6 @@ extern char *xstrdup(const char *);
void (*bsd_signal(int, void (*)(int)))(int);
#endif
int pick_port_bind(int sockfd, struct sockaddr_in *myaddr, unsigned int from, unsigned int to);