From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 99433 invoked by alias); 2 Jan 2018 08:13:37 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 99423 invoked by uid 89); 2 Jan 2018 08:13:36 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=1.6 required=5.0 tests=AWL,BAYES_50,CYGWIN_OWNER_BODY,GIT_PATCH_2,KAM_INFOUSMEBIZ,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_DNSWL_NONE autolearn=no version=3.3.2 spammy=H*MI:local, H*M:local, test-bed, rpcbind X-HELO: mailrelay.dillinger.de Received: from mailrelayb.dillinger.de (HELO mailrelay.dillinger.de) (212.184.64.29) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 02 Jan 2018 08:13:34 +0000 Received: from mailrelaya2.dillinger.de (mailrelaya [192.168.175.11]) by lin254mailrelayb.dillinger.de (Postfix) with ESMTP id D9EE3A333 for ; Tue, 2 Jan 2018 09:13:31 +0100 (CET) Received: from lin275.int.shsservices.de (lin275 [172.18.32.6]) by mailrelaya2.dillinger.de (Postfix) with ESMTP id 47F12242300 for ; Tue, 2 Jan 2018 09:22:21 +0100 (CET) Received: from RESW103.resdom01.local (resw103.dillinger.de [172.18.22.103]) by lin275.int.shsservices.de (Postfix) with ESMTP id C2CD8F3EDD for ; Tue, 2 Jan 2018 09:13:31 +0100 (CET) Received: from RESW102.resdom01.local ([fe80::a883:3db9:4459:1159]) by RESW103.resdom01.local ([fe80::a480:c1ef:e5bb:a91b%15]) with mapi id 14.03.0279.002; Tue, 2 Jan 2018 09:13:31 +0100 From: "PAULUS, Raimund, TI-ABN" To: "cygwin@cygwin.com" Subject: Re: AW: RPC clnt_create() adress already in use Date: Tue, 02 Jan 2018 08:13:00 -0000 Message-ID: <59D90AF8D70E9740907BACDE2BCB520836CEAFA5@RESW102.resdom01.local> Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-IsSubscribed: yes X-SW-Source: 2018-01/txt/msg00009.txt.bz2 Hi Mark, that's it. Maybe you have to add a linfeed in this line (rdate.c) for a bet= ter output: printf("Loop %d: time on host %s =3D %ld =3D=3D %s \n", i, server, *lres, ctime(lres)); But indeed, that is the error. The output of my test (libtirpc without chan= ges): $ ./client ttil75 Loop 0: time on host ttil75 =3D 1514880129 =3D=3D Tue Jan 2 09:02:09 2018 can't establish connection with host ttil75 And the test, if i patch the libtirpc (port =3D 0 before bind()): $ ./client ttil75 Loop 0: time on host ttil75 =3D 1514879460 =3D=3D Tue Jan 2 08:51:00 2018 Loop 1: time on host ttil75 =3D 1514879461 =3D=3D Tue Jan 2 08:51:01 2018 Loop 2: time on host ttil75 =3D 1514879462 =3D=3D Tue Jan 2 08:51:02 2018 Loop 3: time on host ttil75 =3D 1514879463 =3D=3D Tue Jan 2 08:51:03 2018 Loop 4: time on host ttil75 =3D 1514879464 =3D=3D Tue Jan 2 08:51:04 2018 Loop 5: time on host ttil75 =3D 1514879465 =3D=3D Tue Jan 2 08:51:05 2018 Loop 6: time on host ttil75 =3D 1514879466 =3D=3D Tue Jan 2 08:51:06 2018 Loop 7: time on host ttil75 =3D 1514879467 =3D=3D Tue Jan 2 08:51:07 2018 Loop 8: time on host ttil75 =3D 1514879468 =3D=3D Tue Jan 2 08:51:08 2018 Loop 9: time on host ttil75 =3D 1514879469 =3D=3D Tue Jan 2 08:51:09 2018 Loop 10: time on host ttil75 =3D 1514879470 =3D=3D Tue Jan 2 08:51:10 2018 Loop 11: time on host ttil75 =3D 1514879471 =3D=3D Tue Jan 2 08:51:11 2018 Loop 12: time on host ttil75 =3D 1514879472 =3D=3D Tue Jan 2 08:51:12 2018 Loop 13: time on host ttil75 =3D 1514879473 =3D=3D Tue Jan 2 08:51:13 2018 .. .. .. Loop 96: time on host ttil75 =3D 1514879556 =3D=3D Tue Jan 2 08:52:36 2018 Loop 97: time on host ttil75 =3D 1514879557 =3D=3D Tue Jan 2 08:52:37 2018 Loop 98: time on host ttil75 =3D 1514879558 =3D=3D Tue Jan 2 08:52:38 2018 Loop 99: time on host ttil75 =3D 1514879559 =3D=3D Tue Jan 2 08:52:39 2018 I think, the cause for this error is a failure in the function bind(). But = I don't know the sources of bind(). Greetings and a happy new year Raimund -----Urspr=FCngliche Nachricht----- Von: cygwin-owner@cygwin.com [mailto:cygwin-owner@cygwin.com] Im Auftrag vo= n Mark Geisert Gesendet: Sonntag, 31. Dezember 2017 10:50 An: cygwin@cygwin.com Betreff: Re: AW: RPC clnt_create() adress already in use Hi Raimund, I think I've now got a working RPC test-bed on my Cygwin machine. I did ha= ve to deal with Windows Firewall but it was easy. I installed rpcbind, sta= rted it up, compiled following your recipe and ran './server' and './client= localhost' in two separate windows. What I see is this... ./client localhost Loop 0: time on host localhost =3D 1514712920 =3D=3D Sun Dec 31 01:35:20 20= 17 can't establish connection with host localhost Am I correct that what you expect to see is multiple lines each starting wi= th a different "Loop" number? And that if I use a vanilla (non-Cygwin) lib= tirpc I should see those multiple lines? Thanks, ..mark -- 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 -- 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