[Home] [Downloads] [Search] [Help/forum]


Register forum user name Search FAQ

Gammon Forum

[Folder]  Entire forum
-> [Folder]  SMAUG
. -> [Folder]  SMAUG coding
. . -> [Subject]  Descriptor data port

Descriptor data port

It is now over 60 days since the last post. This thread is closed.     [Refresh] Refresh page


Posted by Greven   Canada  (835 posts)  [Biography] bio
Date Sun 25 Jul 2004 01:46 AM (UTC)
Message
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?

Nobody ever expects the spanish inquisition!

darkwarriors.net:4848
http://darkwarriors.net
[Go to top] top

Posted by Zeno   USA  (2,871 posts)  [Biography] bio
Date Reply #1 on Sun 25 Jul 2004 02:08 AM (UTC)
Message
I believe it was only used for information for the Immortals to know what port the player is connect from.

Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.org
[Go to top] top

Posted by Samson   USA  (683 posts)  [Biography] bio
Date Reply #2 on Sun 25 Jul 2004 02:27 AM (UTC)
Message
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.
[Go to top] top

Posted by Nick Gammon   Australia  (22,987 posts)  [Biography] bio   Forum Administrator
Date Reply #3 on Sun 25 Jul 2004 09:48 PM (UTC)
Message
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.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
[Go to top] top

The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).

To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.


10,949 views.

It is now over 60 days since the last post. This thread is closed.     [Refresh] Refresh page

Go to topic:           Search the forum


[Go to top] top

Quick links: MUSHclient. MUSHclient help. Forum shortcuts. Posting templates. Lua modules. Lua documentation.

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.

[Home]


Written by Nick Gammon - 5K   profile for Nick Gammon on Stack Exchange, a network of free, community-driven Q&A sites   Marriage equality

Comments to: Gammon Software support
[RH click to get RSS URL] Forum RSS feed ( https://gammon.com.au/rss/forum.xml )

[Best viewed with any browser - 2K]    [Hosted at HostDash]