sent and receiving TCP data

Posted by Ardentcrest on Wed 24 Sep 2014 08:09 AM — 4 posts, 21,880 views.

#0
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.
USA #1
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.
#2
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
USA Global Moderator #3
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