Erwtisi gia socket programming
Nikos Mavroyanopoulos
nmav at ovrimos.com
Thu Apr 12 10:03:01 EEST 2001
On Wed, 11 Apr 2001 23:51:07 +0300 Michalis Kabrianis <kabrianis at hellug.gr> wrote:
> > Afou anoi3eis to socket, me th getsockname mporeis na pareis o,ti
> > sxetiko uparxei gia authn. H getsockname pairnei ws arguement ena
> > sockaddr_in structure pou exei to ip. H inet_ntoa 8a sou metatreyei to
> > ip apo network byte order se string. Des man pages gia ip(7),
> > getsockname(2), inet_ntoa(3).
> > Na rwthsw ki egw kati panw se auto. H inet_ntoa bazei to apotelesma se
> > static buffer. Yparxei kapoia etoimh analogh function pou einai thread
> > safe?
Κοίτα τις inet_pton() και inet_ntop() (οι οποίες δουλεύουν και με ipv6).
--
Nikos Mavroyanopoulos
More information about the Linux-greek-users
mailing list