Re: help with a simple C program

2000-06-03 Thread Eric G . Miller
On Sat, Jun 03, 2000 at 11:58:50PM +1000, Shao Zhang wrote: > Hi, > Could anyone explain to me why the following C program always fails? > I mean the setsockopt always fails. Thanks for the help. > > Thanks for any help in advance. > > Regards, > > > Shao. > > > =cut here=

Re: help with a simple C program

2000-06-03 Thread Chris Gray
On Sat, Jun 03, 2000 at 11:58:50PM +1000, Shao Zhang wrote: > Hi, > Could anyone explain to me why the following C program always fails? > I mean the setsockopt always fails. Thanks for the help. > > Thanks for any help in advance. > > sd = socket(AF_INET, SOCK_DGRAM, 0); /* 0 for

help with a simple C program

2000-06-03 Thread Shao Zhang
Hi, Could anyone explain to me why the following C program always fails? I mean the setsockopt always fails. Thanks for the help. Thanks for any help in advance. Regards, Shao. =cut here== #include #include #include #include int main(void) { int sd, error; cons