[adasockets] mac os x / intel
Samuel Tardieu
sam at rfc1149.net
Mon Nov 19 17:51:41 CET 2007
>>>>> "Thomas" == Thomas De Contes <d.l.tDeContes at free.fr> writes:
Thomas> Ok :-) I need it (and it is under my competences), so i do it
Thomas> :-) http://dl.free.fr/iHQYK02sl/udprelay.adb
Thanks.
Thomas> But i need your help on udp sockets usage : What should i do
Thomas> instead of Connect l 96 ?
Doesn't it work as-is?
Thomas> btw, What does Setsockopt l 91 exactly ? is it needed ?
>From the socket(7) Linux manpage:
| SO_REUSEADDR
| Indicates that the rules used in validating addresses supplied
| in a bind(2) call should allow reuse of local addresses. For
| PF_INET sockets this means that a socket may bind, except when
| there is an active listening socket bound to the address. When
| the listening socket is bound to INADDR_ANY with a specific port
| then it is not possible to bind to this port for any local
| address. Argument is an integer boolean flag.
Thomas> What do you think about other code ?
It looks fine, although I haven't tried it. Did you?
Sam
--
Samuel Tardieu -- sam at rfc1149.net -- http://www.rfc1149.net/
More information about the AdaSockets
mailing list