9fans archive / 1998 / 12 / 10 /    prev next

From: Franklin Robert Araujo França 973930@dcc...
Subject: [9fans] Announce and Sockets
Date: Wed, 09 Dec 1998 17:45:16 +0000



 When I use announce:

announce("tcp!143.106.24.121!9877", adir);

term% netstat

tcp 0     nojento    Listen  143  0   0.0.0.0

The question is: Why the port used is always 143? Because with this
problem, I have to use dial ("tcp!143.106.24.121!143", 0, devdir, 0).
And
this problem is extended to sockets: I have a program, that use sockets,

that works on Linux and don't work on Plan 9. Because:

server: socket() - bind() - listen() - accept() - read() - write() -
read() - close()
client:                                          socket()  - connect()
-write() - read - close()

    The client have to connect to server, and it's don't occur.


Franklin.