X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:mime-version:in-reply-to:references:from:date :message-id:subject:to:content-type; q=dns; s=default; b=nhhX0P2 FQHZ1FqzoEfW9R9NVnh0l54scv7B67vM8bNYtLlCFwEHf1LiFQ3Ya2zjYDfExEi0 /ByZlVindr7W3/SbB/ZC4JZe25tb94Mny5GmIhrJFgNSU5GWgfmOvM2mhbPerB3E GFLhLOsmWZUJFQjy6JVBDi6dYkJEDDws/Phc= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:mime-version:in-reply-to:references:from:date :message-id:subject:to:content-type; s=default; bh=M4BWuZpvE5faU nUwEBbKbR2R9jg=; b=X6HA974ykenWlS8uJJ2LxcnM377XftxOobVkPdUaGgU04 03zexnEeDWuM35lstvB8E6/S/YHUzEkV0rYdZ+QWYHMw2Z82qY/8miwOEZoP0KCG 7xKyUi7crAhNGbTCS+gWXQ7TAhiq9DeDXFDbrnRuZBt5nXSTWeh75qGJrgwqH4= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: 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 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=0.2 required=5.0 tests=AWL,BAYES_20,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=no version=3.3.2 spammy=connections, world, Connection, Accept X-HELO: mail-lf0-f53.google.com X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=HQXWabiU7unY1FqdgmFz4yJEljZBiRk28fXDiEu4njY=; b=c9/pq+Zu18O/7u/oXsnyLGRFkxUiTFxP8DWZMlDX/MbZG7lfn55ok34XXTEQJgSWSI zGy6N7pmmO1JRimQHIjf1Qg45YKmI2ptk7TR4y5RNY4h6pcIjjYgI3xva0CPV4hys3Vv r/3bPybxo71CDOSJvhlnJZN97oYFTVfKjhXpAGUSXWayvJ7uQOh1fDRwyWfD6xxw1vFi By9957HfMFaelavMic+Aq+9TDvK5ZeWA+sqfNqpx+vCQtCk/diu3krDa2qlK70Foqu+E VMEL8u0g7rqv8Rj2ECUiXmKB6CvU09UdSArWjkuRb57EzhfvoN5OZQySlyz60BJVhl0T Q1XQ== X-Gm-Message-State: ALQs6tDK2xwDgin+bbZ+WL0X9spIULdH8y41V4SzaB6XH478R0myP92m uLiMc7Djb1Lr8Bwm4TpVfFbp2NIAWSKAtRWbev4= X-Google-Smtp-Source: AB8JxZpPkf90F4u92AfGhO0otZxCRauTZEjuYBqSiADr+gwN58vywrGSiBnlV/e4Bto3KSk8YqQZBCEhfLW3n3JKdYs= X-Received: by 10.46.93.87 with SMTP id r84mr2878167ljb.125.1524363075766; Sat, 21 Apr 2018 19:11:15 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <6ed83f54-401c-6f2f-83bf-9998323519d3@maxrnd.com> References: <6ed83f54-401c-6f2f-83bf-9998323519d3 AT maxrnd DOT com> From: R0b0t1 Date: Sat, 21 Apr 2018 21:11:15 -0500 Message-ID: Subject: Re: Unable to Accept TCP Connection To: cygwin AT cygwin DOT com Content-Type: text/plain; charset="UTF-8" X-IsSubscribed: yes On Sat, Apr 21, 2018 at 6:20 PM, Mark Geisert wrote: > R0b0t1 wrote: >> >> The following never prints "Hello, world!" >> >> >> struct sboot_state { >> struct sockaddr_in haddr; >> struct sockaddr caddr; >> socklen_t clen; >> int sfd, cfd; >> } state = { 0 }; >> >> state.haddr.sin_family = AF_INET; >> state.haddr.sin_port = 2200; > > > You can use the Windows 'netstat' to see listening connections. See if your > app shows up on port 2200. But I suspect you need an htons(2200) on the > assignment to sin_port. > Thanks, I thought something was missing. Wasn't sure what. -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple