X-Spam-Check-By: sourceware.org Message-ID: Date: Sun, 15 Jan 2006 18:49:46 -0600 From: Tim To: cygwin AT cygwin DOT com Subject: socket programming -- operation now in progress MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Disposition: inline Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id k0G0ns6U012610 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 time_serv; time_serv.sin_family = AF_INET; time_serv.sin_port = htons(37); inet_aton("129.6.15.28", &time_serv.sin_addr); connect(sock, (struct sockaddr*)&time_serv, sizeof(struct sockaddr)); perror("connect"); int num; read(sock, &num, 4); printf("%x\n", num); } 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 Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/