Linux TCP/IP programming

Stelios Xanthakis root at ppp-pat139.tee.gr
Mon Jun 19 05:14:50 EEST 2000



On Sun, 18 Jun 2000, The Reverant wrote:

> Ftiaxno enan server pou akouei gia sindeseis se ena port,
> xrisimopoiontas sockets fisika. Afto pou thelo na matho einai
> pos mporo (me poia sinartisi) na matho apo poion host erxontai
> oi sindeseis pou kano accept() i akoma kalitera na ksero poios
> zitaei connect() sto port PRIN kano accept, oste na mporo na
> aporipso tin aitisi gia sindesi ama thelo.

To proto sigoura tha ginete me kapio tropo. getsockname(3) prepei na kanei
ti douleia. To sockaddr_in pou tha peraseis san sockaddr* tha prepei
telika na exei ti dieftinsi tou allou host tin opia mporis meta na kaneis
lookup. Afto tha ginei META to accept.

Genika ta arxeia /usr/info/libc.info-* exoun endiaferouses plirofories gia
oti parexei i libc.

Gia to deftero den ginete para mono meso inetd /etc/hosts.{allow,deny}
opos anaferthike.

Stelios



--
linux-greek-users mailing list -- http://lists.hellug.gr




More information about the Linux-greek-users mailing list