Posted 11-22-2010 at 03:20 AM by abhayb
I am using linux kernel version 2.6.27 .
Platform is C.
I am creating a tcp socket and connecting it to a server.The connect fails.So I am closing the socket and trying to create a socket again.This time the socket returns 0.
According to man pages only -1 is returned on error.
Also descriptor 0 is reserved for stdin buffer. I am getting this every time. Pls help me on this issue.
|