Changes between Version 98 and Version 99 of Avah4users
- Timestamp:
- 09/23/07 15:40:33 (6 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Avah4users
v98 v99 117 117 1. '''I want to write a TCP server application that automatically chooses a free IP port for listening and then announces it via Avahi. How do I do that best? ''' 118 118 * Just create the socket and call listen() on it. Then, the IP stack will automatically assign a free port number. Use getsockname() to query the port number that has been chosen and use that when registering the Avahi service. [source:/trunk/docs/socket-auto-port.c An exmaple how to do this may be found in our SVN] 119 1. '''I get a lot of IP_ADD_MEMBERSHIP failed: No buffer space available messages in syslog! ''' 120 * Increase your {{{/proc/sys/net/ipv4/igmp_max_memberships}}} (on Linux) 119 121 120 122 == Documentation ==
