I have done an small app that should act as an MUD server in future, i have only programmed things like an socket accepting connections and multithreading stuff. But there is an problem!
The server crashes when i have connected with an standard Telnet client and typing a character,
the Telnet client sends the typed character immedlity and not as an string.
I have followed an tutorial that shows how to programm sockets etc.. and i have done one server and one client app that works perfectly together, but i also want the server to be compatible with Telnet. I cannot find any tutorial that cover how to do an Telnet compatible socket, is there any special arguments needed, data types or some sort of emulation?
Another thing, i have an Main loop and an socket-function pending as an Thread, I have tried to do an function to send data to the client but have failed. Is there some way to read some data(from a file, variable etc..) and send it to the client thro the Main loop, for example.
check for incoming data();
load some data from a file or some variable....();
send data to client();
I want the app to be capable to get an string from the client and send some back to it, and it should be Telnet compatible. The main function of the app is to function like an MUD!
The app is only for learning , if could mail the code if you(The helper) need it to help me...
And some good links to MUD programming tutorials should be great.!