9fans archive / 1998 / 12 / 12 / prev next
From: forsyth@cal... forsyth@cal...
Subject: [9fans] Announce and Sockets
Date: Wed, 9 Dec 1998 23:11:58 GMT
>>announce("tcp!143.106.24.121!9877", adir);
>>The question is: Why the port used is always 143? Because with this
use
announce("tcp!*!9877", adir)
because /sys/src/9/port/devip.c is misinterpreting
the ip address as a port number (note that your ip address starts with 143!).
i was a bit confused because my own copy of the source has this fixed/changed
for some reason (perhaps it came with beto's multicast changes).
by using "*" in the host part, cs will produce just the port
number for announce to give to the driver.
i don't think the documentation makes it clear.