From: David Presotto <presotto@closedmind.org>
To: 9fans@cse.psu.edu
Subject: Re: [9fans] udp and dial
Date: Thu, 26 Feb 2004 09:43:25 -0500 [thread overview]
Message-ID: <d284ab9faae82d942e34206f670d8400@plan9.bell-labs.com> (raw)
In-Reply-To: <b45d49b893bedbbafdde919489089e97@snellwilcox.com>
[-- Attachment #1: Type: text/plain, Size: 136 bytes --]
The local port is the second argument to dial:
fd = dial("udp!135.104.9.1!31", "21", 0, 0);
to send mail from port 21 to port 31.
[-- Attachment #2: Type: message/rfc822, Size: 2016 bytes --]
From: plan9fans@ntlworld.nospam.com
To: 9fans@cse.psu.edu
Subject: [9fans] udp and dial
Date: Thu, 26 Feb 2004 14:40:22 0000
Message-ID: <b45d49b893bedbbafdde919489089e97@snellwilcox.com>
Hi,
can I use dial to set up an point-to-point udp connection
and force the local port to a known number? I guess
that if the answer is no then I must just do a connect()
and use the 'headers' option and explicitly set the headers
in every packet - no great hardship, more a question of
does the plan9 network syntax support such a thing?
-Steve
next prev parent reply other threads:[~2004-02-26 14:43 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-02-26 14:40 plan9fans
2004-02-26 14:43 ` David Presotto [this message]
2004-02-26 14:43 ` David Presotto
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=d284ab9faae82d942e34206f670d8400@plan9.bell-labs.com \
--to=presotto@closedmind.org \
--cc=9fans@cse.psu.edu \
/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 NNTP newsgroup(s).