Hi all,
I tried very simple program on native Plan9:
#include u.h
#include libc.h
void
main(int, char**)
{
int afd, lfd;
char adir[NETPATHLEN], ldir[NETPATHLEN];
afd = announce(tcp!*!20540, adir);
if (afd 0)
sysfatal(listen: %r);
lfd = listen(adir, ldir);
if (lfd 0)
sysfatal(listen: %r);
On 10 October 2014 08:48, Pavel Klinkovský pavel.klinkov...@gmail.com
wrote:
Do you have any explanation?
Did I make some bug in the program?
Not all network types implement reject, and the result of reject is
therefore usually ignored (since in any case the connection is going to be
closed).
On 10 October 2014 10:22, Charles Forsyth charles.fors...@gmail.com wrote:
Not all network types implement reject,
To be more precise: not all network types allow a diagnostic to be sent
with the reset or close and sadly TCP/IP is one of them.
Hi Pavel !
It seems, you do it incorrectly :) dial(2) has an exact example if using
announce/listen/accept functions.
2014-10-10 11:48 GMT+04:00 Pavel Klinkovský pavel.klinkov...@gmail.com:
Hi all,
I tried very simple program on native Plan9:
#include u.h
#include libc.h
void
main(int,
Hi Sergey,
It seems, you do it incorrectly :) dial(2) has an exact example if using
announce/listen/accept functions.
I do exactly what I need. ;)
The sequence announce/listen/accept is very well known to me.
But I need both possibilities:
- accept incoming connection
- reject incoming
On 10 October 2014 10:28, Pavel Klinkovský pavel.klinkov...@gmail.com
wrote:
reject incoming connection, which failed.
reject should probably swallow the error return from the ctl file write, as
accept does, until
tcp/ip and others interpret the control request and either reset the
connection
Hello,
in sys/src/cmd/eqn/text.c a function definition starts with
int
trans(int c, char *)
{
What does that mean (i.e. how is the second function parameter referenced?
Carsten
int
trans(int c, char *)
{
That parameter seems not to be used inside. That may answer the question...
Carsten
Hello,
I'm new to Plan9, using acme/p9p for a couple of months, and I want to add
plan9 machines to my network. I'm thinking that a DNS/DHCP/AUTH server will be
an easy step. If this machine could have the role of an Internet
firewall/nat-router it will be even better.
Do you think
Hello,
is there no neqn on Plan9?
Carsten
Quoting Carsten Kunze carsten.ku...@arcor.de:
Hello,
is there no neqn on Plan9?
Carsten
neqn just runs eqn with -Tascii. Plan 9 uses UTF-8
and eqn has -Tutf as the default.
khm
int
trans(int c, char *)
{
That parameter seems not to be used inside. That may answer
the question...
Yes, that is the answer. By alowing a parameter name to be
omitted, the compiler can warn you about unused parameters
without having to add clutter that explicitly says, I'm ignoring
I'm new to Plan9, using acme/p9p for a couple of months, and
I want to add plan9 machines to my network. I'm thinking
that a DNS/DHCP/AUTH server will be an easy step. If this
machine could have the role of an Internet
firewall/nat-router it will be even better.
Do you think plan9+raspi
I think the raspberry pi disk image that is available is 2GB, so it's
probably easiest if you have at least that.
On 10 October 2014 09:41, Brian L. Stuart blstu...@bellsouth.net wrote:
I'm new to Plan9, using acme/p9p for a couple of months, and
I want to add plan9 machines to my network.
sounds like an excellent idea, only one pain, the auth server uses the console
for its config
you could use erik's con Ethernet console driver so you can configure it from
another plan system, or even dial into the pi and connect back in via con.
this is not referred though, ideally you should
you could use erik's con Ethernet console driver so you can configure it from
another plan system, or even dial into the pi and connect back in via con.
cec(1), which is implemented in 9atom.
- erik
cec(1)
oops, yep, that's the one.
On 10 Oct 2014, at 22:08, erik quanstrom quans...@quanstro.net wrote:
you could use erik's con Ethernet console driver so you can configure it
from another plan system, or even dial into the pi and connect back in via
con.
cec(1), which is
17 matches
Mail list logo