EPROTOTYPE

created by Brian Feldman
(thing) by Brian Feldman (4.8 y) (print)   ?   (I like it!) Sat Oct 13 2001 at 13:13:21
"Protocol wrong type for socket": this errno generally occurs on socket system calls, such as connect. It occurs when the protocol type (SOCK_STREAM, SOCK_DGRAM, etc.) does not coincide between two sockets when a connection attempt is made. For example, I may create a datagram Unix socket with the name "/tmp/foo"; you will get this error if you try to connect to "/tmp/foo" with a stream socket you've created.
Y'know, if you log in, you can write something here, or contact authors directly on the site. Create a New User if you don't already have an account.