This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Invalid argument error when using recvfrom


Hi all,

Using raw sockets with cygwin is being really painful... After being able to create an IP datagram using the latest snapshot now I'm getting the error "Invalid argument" when calling recvfrom() without doing BIND first.

There is no need to call bind() before recvfrom when using raw sockets. Why am i getting this error now? Some restriction with winsock?

I create the socket with:
sd = socket(AF_INET, SOCK_RAW, IPPROTO_RAW);

I will appreciate any help..

FBM



--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]