Mercurial > pidgin
diff src/network.h @ 8239:5220e0898252
[gaim-migrate @ 8962]
Methinks prpl's should be able to specify a range of ports. Also,
I don't think Gaim should ever try to bind to ports below 1024...
Maybe that should be allowed though, I don't know?
committer: Tailor Script <tailor@pidgin.im>
| author | Mark Doliner <mark@kingant.net> |
|---|---|
| date | Thu, 12 Feb 2004 17:23:17 +0000 |
| parents | f50c059b6384 |
| children | 609a62b8e748 |
line wrap: on
line diff
--- a/src/network.h Thu Feb 12 17:02:35 2004 +0000 +++ b/src/network.h Thu Feb 12 17:23:17 2004 +0000 @@ -96,13 +96,14 @@ * the listening socket, and add a new watcher on the new socket accept * returned. * - * @param portnum The port number to bind to, or 0, to let the core decide. - * By default, the core will let the kernel pick one at random, - * but users are allowed to specify a range. - * + * @param start The port number to bind to, or 0 to let the core decide. + * By default, the core will let the kernel pick one at random, + * but users are allowed to specify a range. + * @param end The highest possible port in the range of ports to listen on, + * or 0 to let the core decide. * @return The file descriptor of the listening socket. */ -int gaim_network_listen(short portnum); +int gaim_network_listen(short start, short end); /** * Gets a port number from a file descriptor.
