delorie.com/archives/browse.cgi | search |
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:from:to:subject:date:message-id:content-type | |
:content-transfer-encoding:mime-version; q=dns; s=default; b=lox | |
z3U3kKNL/YHZGFLn42oFHRsjcIFJPC++w3yFJFOHpb/6COa/ff3LtMi3TVv0tb32 | |
k9VwfgkwaH9Y8vSQG3M4Ezrhz0+fDWEiS/st404hEJqEK/ATvsNKBzi4ja/icXGS | |
+ipepNit735CiYoSaDZxxJhA71ApWQ4hhTcAwMjs= | |
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:from:to:subject:date:message-id:content-type | |
:content-transfer-encoding:mime-version; s=default; bh=DXUZAcP3d | |
Taf/408zew75y/aoTQ=; b=M+qizjmbEzNB9x5tyMEAFFc9HzlIxLf2gnqSk+dvt | |
2GIsInhto0XvFTfqRSWNsVif9lEG0cWpqKxJkqnYX3dbGsJoyBaUuCh2INhVhRv0 | |
pUz7tKp4ZBOXrTDrAytFqPcZJvl56WnsnXt2P37RuQlON9CrNhKMWNZ1YY5BMOCw | |
K8= | |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
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 |
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 |
From: | "PAULUS, Raimund, TI-ABN" <Raimund DOT Paulus AT dillinger DOT biz> |
To: | "cygwin AT cygwin DOT com" <cygwin AT cygwin DOT com> |
Subject: | Re: AW: RPC clnt_create() adress already in use |
Date: | Tue, 2 Jan 2018 08:13:31 +0000 |
Message-ID: | <59D90AF8D70E9740907BACDE2BCB520836CEAFA5@RESW102.resdom01.local> |
MIME-Version: | 1.0 |
X-IsSubscribed: | yes |
X-MIME-Autoconverted: | from quoted-printable to 8bit by delorie.com id w028Dnc4014843 |
Hi Mark, that's it. Maybe you have to add a linfeed in this line (rdate.c) for a better output: printf("Loop %d: time on host %s = %ld == %s \n", i, server, *lres, ctime(lres)); But indeed, that is the error. The output of my test (libtirpc without changes): $ ./client ttil75 Loop 0: time on host ttil75 = 1514880129 == Tue Jan 2 09:02:09 2018 can't establish connection with host ttil75 And the test, if i patch the libtirpc (port = 0 before bind()): $ ./client ttil75 Loop 0: time on host ttil75 = 1514879460 == Tue Jan 2 08:51:00 2018 Loop 1: time on host ttil75 = 1514879461 == Tue Jan 2 08:51:01 2018 Loop 2: time on host ttil75 = 1514879462 == Tue Jan 2 08:51:02 2018 Loop 3: time on host ttil75 = 1514879463 == Tue Jan 2 08:51:03 2018 Loop 4: time on host ttil75 = 1514879464 == Tue Jan 2 08:51:04 2018 Loop 5: time on host ttil75 = 1514879465 == Tue Jan 2 08:51:05 2018 Loop 6: time on host ttil75 = 1514879466 == Tue Jan 2 08:51:06 2018 Loop 7: time on host ttil75 = 1514879467 == Tue Jan 2 08:51:07 2018 Loop 8: time on host ttil75 = 1514879468 == Tue Jan 2 08:51:08 2018 Loop 9: time on host ttil75 = 1514879469 == Tue Jan 2 08:51:09 2018 Loop 10: time on host ttil75 = 1514879470 == Tue Jan 2 08:51:10 2018 Loop 11: time on host ttil75 = 1514879471 == Tue Jan 2 08:51:11 2018 Loop 12: time on host ttil75 = 1514879472 == Tue Jan 2 08:51:12 2018 Loop 13: time on host ttil75 = 1514879473 == Tue Jan 2 08:51:13 2018 .. .. .. Loop 96: time on host ttil75 = 1514879556 == Tue Jan 2 08:52:36 2018 Loop 97: time on host ttil75 = 1514879557 == Tue Jan 2 08:52:37 2018 Loop 98: time on host ttil75 = 1514879558 == Tue Jan 2 08:52:38 2018 Loop 99: time on host ttil75 = 1514879559 == 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üngliche Nachricht----- Von: cygwin-owner AT cygwin DOT com [mailto:cygwin-owner AT cygwin DOT com] Im Auftrag von Mark Geisert Gesendet: Sonntag, 31. Dezember 2017 10:50 An: cygwin AT cygwin DOT 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 have to deal with Windows Firewall but it was easy. I installed rpcbind, started 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 = 1514712920 == Sun Dec 31 01:35:20 2017 can't establish connection with host localhost Am I correct that what you expect to see is multiple lines each starting with a different "Loop" number? And that if I use a vanilla (non-Cygwin) libtirpc 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
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |