Re: socket programming -- operation now in progress

2006-01-15 Thread Tim
Oh my goodness. I suppose you are right Samuel. I guess it just threw me off when I got "connect: Success" in Linux from the perror. Sorry to have wasted your time. Sincerely, Timothy -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/probl

Re: socket programming -- operation now in progress

2006-01-15 Thread Samuel Thibault
Tim, le Sun 15 Jan 2006 18:49:46 -0600, a écrit : Hi, > On connect(), I get an error "Operation now in progress." > > connect(sock, (struct sockaddr*)&time_serv, sizeof(struct sockaddr)); > perror("connect"); Does connect() return -1 ? If not, errno has an undefined value and shouldn

socket programming -- operation now in progress

2006-01-15 Thread Tim
I am testing a very simple socket program. It functions, but there's still a nagging problem. On connect(), I get an error "Operation now in progress." The code: #include #include #include #include int main() { int sock = socket(PF_INET, SOCK_STREAM, 0); struct sockaddr_in ti