This is the mail archive of the
mailing list for the Cygwin project.
socket programming -- operation now in progress
- From: Tim <tjones01 at gmail dot com>
- To: cygwin at cygwin dot com
- Date: Sun, 15 Jan 2006 18:49:46 -0600
- Subject: socket programming -- operation now in progress
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."
int sock = socket(PF_INET, SOCK_STREAM, 0);
struct sockaddr_in time_serv;
time_serv.sin_family = AF_INET;
time_serv.sin_port = htons(37);
connect(sock, (struct sockaddr*)&time_serv, sizeof(struct sockaddr));
read(sock, &num, 4);
Why am I getting this error? It seems especially odd, since the
program actually works. I'm running cygwin on win98se. I tried this
code on a Linux box, and did not receive the error message.
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html