delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
To: | cygwin AT cygwin DOT com |
From: | Shankar Unni <shankarunni AT netscape DOT net> |
Subject: | Re: Socket Programming - accept() blocking |
Date: | Wed, 01 Dec 2004 14:07:19 -0800 |
Lines: | 12 |
Message-ID: | <colfan$fak$1@sea.gmane.org> |
References: | <loom DOT 20041201T193743-430 AT post DOT gmane DOT org> |
Mime-Version: | 1.0 |
X-Complaints-To: | usenet AT sea DOT gmane DOT org |
X-Gmane-NNTP-Posting-Host: | adsl-68-120-146-125.dsl.snfc21.pacbell.net |
User-Agent: | Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.5) Gecko/20041103 Thunderbird/0.9 Mnenhy/0.6.0.101 |
In-Reply-To: | <loom.20041201T193743-430@post.gmane.org> |
X-IsSubscribed: | yes |
Ryan wrote: > if ((s_curr = accept(s, (struct sockaddr *) &pin, &addrlen)) == -1) > { > printf("ERROR: accept\n"); > } > > printf("Connection Received\n"); You'll have to quote a *little bit* more of the program (e.g. what you have initialized pin and addrlen with, and what calls you have made before that (socket(), bind(), etc.) -- 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/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |