public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: "PAULUS, Raimund, TI-ABN" <Raimund.Paulus@dillinger.biz>
To: "cygwin@cygwin.com" <cygwin@cygwin.com>
Subject: Re: AW: RPC clnt_create() adress already in use
Date: Tue, 02 Jan 2018 08:13:00 -0000	[thread overview]
Message-ID: <59D90AF8D70E9740907BACDE2BCB520836CEAFA5@RESW102.resdom01.local> (raw)

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@cygwin.com [mailto:cygwin-owner@cygwin.com] Im Auftrag von 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 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

             reply	other threads:[~2018-01-02  8:13 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-01-02  8:13 PAULUS, Raimund, TI-ABN [this message]
2018-01-09  4:55 ` Mark Geisert
2018-01-09  8:14   ` WG: " PAULUS, Raimund, TI-ABN
  -- strict thread matches above, loose matches on Subject: below --
2017-12-30 18:39 PAULUS, Raimund, TI-ABN
2017-12-31 17:10 ` Mark Geisert
2017-09-25  6:19 PAULUS, Raimund, TI-ABN

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=59D90AF8D70E9740907BACDE2BCB520836CEAFA5@RESW102.resdom01.local \
    --to=raimund.paulus@dillinger.biz \
    --cc=cygwin@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).