Insane wrote:
Hey!
Recently I'm experimenting with networking+sockets in C#, and I need a simple, elegant solution to test my experiments.
What I've been trying to find for over 2 hours (why else would I post on the DROD forum? I must be desperate..) is a simple, command-line/GUI tcp server that accepts all incoming connections, and simply echos incoming plaintext. (Or maybe even sends it back)
Can anybody help me here at all?
Normally I'd make one myself, but I'm not ready for that yet (in C#). I haven't even implemented incoming messages.
-Insane
EDIT: I solved it for now by going really cheap and making a simple server like that using a graphical game maker.
I still need a better solution, though. If possible.
Well, if you're looking for a cheap and dirty sockets app that does that, I'm sure they're out there. Such a thing shouldn't take more than an hour or so to cobble together, though. A select() loop, a listener, and a few printf() statements. Or something along those lines.
I assume, in any case, that you're not actually trying to implement your own TCP state machine. (But if you are, good luck to you.)
Josh
____________________________
"
Rings and knots of joy and grief, all interlaced and locking."
--William Buck