[Xorp-hackers] A question about XrlStdRouter::create_listener()
Bruce Simpson
bms at incunabulum.net
Wed Aug 26 04:50:47 PDT 2009
Eltony Li wrote:
> Why use default port = 0 for "new XrlPFInProcListener(_e, this);"? I
> found the default port (0) is used for system call ,bind(...).
I assume you're referring to the XrlPFSTCP code, and that
XrlPFInProcListener is a typo, as it contains no references to sockets
anywhere.
In STCP, sockets are being instantiated for ephemeral RPC use, therefore
the port chosen is ephemeral (0).
More information about the Xorp-hackers
mailing list