Gammon Forum
Entire forum
SMAUG
SMAUG coding
Descriptor data port
It is now over 60 days since the last post. This thread is closed.
  Refresh page
Posted by
| Greven
Canada (835 posts) 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 withdnew->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 | top |
|
Posted by
| Zeno
USA (2,871 posts) 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 | top |
|
Posted by
| Samson
USA (683 posts) 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. | top |
|
Posted by
| Nick Gammon
Australia (22,987 posts) 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 | 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 page
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.