Register forum user name Search FAQ

Gammon Forum

Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the password reset link.

Due to spam on this forum, all posts now need moderator approval.

 Entire forum ➜ SMAUG ➜ SMAUG coding ➜ sent and receiving TCP data

sent and receiving TCP data

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


Posted by Ardentcrest   (47 posts)  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.
Top

Posted by Meerclar   USA  (733 posts)  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
Top

Posted by Ardentcrest   (47 posts)  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
Top

Posted by Fiendish   USA  (2,535 posts)  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
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.


16,758 views.

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

Go to topic:           Search the forum


[Go to top] top

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