problem in using sendmsg()

anil akkur anilakkur at
Fri Nov 28 04:41:32 PST 2003

I am using Free BSD version 5.0.
I am getting the error message (EINVAL) when I use sendmsg().
I am initialising all the values of structure msghdr .

the code looks likes,

  struct msghdr msg ;
  int send_sock ;

/* then I am initialising structure msg */

/* Then calll the sendmessage with arguments */

sendmsg(send_sock, &msg, flag) ;

/* i used all the values for flag each time */

When it is executed errno is setting to 22.

I am not getting the where the fault is .

plz help me in getting this solved .

thanks in advance ,

with warm regards,
Anil Akkur

Enjoy shopping online? Get this e credit card. It cuts cost & adds value!

More information about the freebsd-questions mailing list