Dear List
first :
I want to know if there is any sample of divert socket usage and divert
socket programming?
I see the ipfw manual it says divert socket is used but when i goto
/usr/src/sbin/ipfw
and trace ipfw.c
i cannot find anything about divert socket i just found a raw socket.
second:
When i use this code of C (main.c)
....//include sections
int main()
{
int s,fd;
char buff[4096];
printf("going to make SD ");
s = socket(PF_INET, IP
printf("going to read");
soheil: read(s, buff, 4096); // or recv(s,buff,4096, 0);
printf("done");
return 0;
}
After i compile it nothing about output on the screen ( none of printfs are
executed ) when i comment out the line labled by soheil it works and output
:going to make SD going to read ....
I don't know why please help me.
THANX alot
Soheil hassas yeganeh
_________________________________________________________________
MSN 8 with e-mail virus protection service: 2 months FREE*
http://join.msn.com/?page=features/virus
To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-net" in the body of the message
- Re: Divert Socket And Q. About Raw Socket soheil soheil
- Re: Divert Socket And Q. About Raw Socket Nimrod Mesika
- Re: Divert Socket And Q. About Raw Socket Julian Elischer