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

Gammon Forum

See www.mushclient.com/spam for dealing with forum spam. Please read the MUSHclient FAQ!

[Folder]  Entire forum
-> [Folder]  SMAUG
. -> [Folder]  SMAUG coding
. . -> [Subject]  sent and receiving TCP data
Home  |  Users  |  Search  |  FAQ
Username:
Register forum user name
Password:
Forgotten password?

sent and receiving TCP data

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


Posted by Ardentcrest   (43 posts)  [Biography] bio
Date Wed 24 Sep 2014 08:09 AM (UTC)
Message
ok I'm a total noob at this so bear with me.

I connect to the server using a client. The server sends the data

ie welcome.. ECT

up to the point where you do an input

ie create or connect.

what I need to know is the break down of the code and ascii, of what comes before the text how the client knows its at the end of the text, when to allow an input and so on.



Is it something like this...

DATA - this is the text length.
DATA - this is the text.
DATA - wait for input.

I hope you understand what I'm looking for.
[Go to top] top

Posted by Meerclar   USA  (733 posts)  [Biography] bio
Date Reply #1 on Wed 24 Sep 2014 09:24 AM (UTC)
Message
How exactly does a coding/networking newbie come to attempt a MU* client for a platform that's been out of production for 20 years? Presuming of course this is related to your other topic about toying with SMAUG for a zx spectrum client - I can't honestly say I believe even the last models released have the hardware to run much more than raw telnet effectively.

That said, if you're absolutely bent on trying to do this, check out http://www.eventhelix.com/realtimemantra/networking/#.VCKbEJRdV8E for a primer on how the various communications protocols work.

As for the internal packet structure, check out http://www.zytrax.com/tech/protocols/tcp.html and you'll have to look at the mu* themselves to see what tweaks they made to the various protocols in play ans which specific protocols are actually in play.

Meerclar - Lord of Cats
Coder, Builder, and Tormenter of Mortals
Stormbringer: Rebirth
storm-bringer.org:4500
www.storm-bringer.org
[Go to top] top

Posted by Ardentcrest   (43 posts)  [Biography] bio
Date Reply #2 on Wed 24 Sep 2014 09:37 AM (UTC)
Message
Meerclar said:

How exactly does a coding/networking newbie come to attempt a MU* client for a platform that's been out of production for 20 years?


out of production. Yes
But not dead.... :D

http://www.worldofspectrum.org/

Even now there is new emulators new software and new hardware for it.

check out

http://spectrum.alioth.net/doc/index.php/Spectranet
[Go to top] top

Posted by Fiendish   USA  (1,641 posts)  [Biography] bio   Global Moderator
Date Reply #3 on Wed 24 Sep 2014 03:15 PM (UTC)

Amended on Wed 24 Sep 2014 03:23 PM (UTC) by Fiendish

Message
Maybe this thread will be of some interest?

http://www.mushclient.com/forum/?id=3220

(There is no "wait for input" message. The server either waits or doesn't. Both sides need queues for sending and receiving.)

Also check out MUSHclient's Debug Packets feature ( http://www.mushclient.com/forum/?id=4092 )
and read the Telnet specification at http://tools.ietf.org/html/rfc854

And also Nick's post on sending non-text data "out of band" with subnegotiation. http://www.gammon.com.au/forum/?id=10043

https://github.com/fiendish/aardwolfclientpackage
[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.


3,027 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 FutureQuest]