Re: mac os x / intel
Samuel Tardieu <[email protected]> Mon, 19 Nov 2007 17:51:41 +0100
| Newsgroups | gmane.comp.lang.ada.sockets |
|---|---|
| Message-ID | <[email protected]> |
>>>>> "Thomas" =3D=3D Thomas De=A0Contes <[email protected]> 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 -- [email protected] -- http://www.rfc1149.net/ _______________________________________________ AdaSockets mailing list [email protected] http://lists.rfc1149.net/mailman/listinfo/adasockets