Descriptor data port

Posted by Greven on Sun 25 Jul 2004 01:46 AM — 4 posts, 16,298 views.

Canada #0
In stock smaug, descriptor data has a integer member called port. It is set in comm.c with
dnew->port		= ntohs( sock.sin_port );
But after that, I don't think it is ever used. Pehaps it was intened for something else? If there is any real purpose for this that anyone knows of, would you mind enlightening me?
USA #1
I believe it was only used for information for the Immortals to know what port the player is connect from.
USA #2
It simply tells you what port the person's computer opened to make contact with the mud. There's not much useful purpose behind it that I'm aware of. The mud doesn't care what port they are communicating through.
Australia Forum Administrator #3
Conceivably you might use it for a packet sniffer, to distinguish one connection from another, however apart from that it is probably one of those things you store because you can, not because it is particularly useful.