struct sockaddr

Kostas Lialiambis stp at pel.forthnet.gr
Fri Nov 28 13:45:22 EET 1997


Koxaras Aris wrote in message ...

>        c = sizeof(struct sockaddr_in);
>        if ( (num=getpeername(0, (struct sockaddr *)&s, &c )) < 0 ) {
>                perror("getpeername()");
>                exit(-1);
>        }
>        printf("%s\n", inet_ntoa(s.sin_addr));

Errr... M' eswses filara. Apo-kai-ekleieto na ta brw egw ola ayta monos moy.
Profanws, h8ela na briskw se string thn diey8ynsh toy client wste na kalw me
system mesa apo ton httpd to ipfwadm (gia to gnwsto 8ema poy syzhtoysa edw).
Ennoeitai oti den etre3a to programma soy alla to prosarmwsa mesa sto
http_main.c toy apache (kai melame doylepse !!!).Twra 8a mporw na kanw aneta
elegxoys kai na mhn firewalliazw p.x. osoys kaloyn apo AUTH.

Ayto poy apomenei einai na kataferw na bazw firewall rules xwris na kalw me
thn system() to ipfwadm (alla ayto to afhnw gia epomena ma8hmata...).

Korrrrr...


--
====================================================================
Gia na mathete pos na xrisimopoiite ton majordomo, stilte e-mail
sto "majordomo at argos.hol.gr" me 1 grammi sto keimeno: help
Ta archives tis listas einai sto http://www.argos.hol.gr/lists
Gia opoiodipote problima stilte  e-mail ston owner-linux-greek-users
====================================================================



More information about the Linux-greek-users mailing list