Announcement: Be excellent to each other.


Caravel Forum : Other Boards : Anything : A Simple Server (Command-line tcp server.)
New Topic New Poll Post Reply
Poster Message
Insane
Level: Master Delver
Avatar
Rank Points: 154
Registered: 08-06-2005
IP: Logged
icon A Simple Server (0)  
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.

[Last edited by Insane at 11-16-2007 07:36 PM]
11-16-2007 at 07:29 PM
View Profile Send Private Message to User Visit Homepage Show all user's posts This architect's holds Quote Reply
jbluestein
Level: Smitemaster
Avatar
Rank Points: 1670
Registered: 12-23-2005
IP: Logged
icon Re: A Simple Server (0)  
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
11-16-2007 at 08:03 PM
View Profile Send Private Message to User Send Email to User Show all user's posts High Scores This architect's holds Quote Reply
Briareos
Level: Smitemaster
Avatar
Rank Points: 3516
Registered: 08-07-2005
IP: Logged
icon Re: A Simple Server (+1)  
Look no further than the swiss army knife of network tools, the mighty netcat...

np: Thomas Brinkmann - Track 04 (Concept 1 96:VR)

____________________________
"I'm not anti-anything, I'm anti-everything, it fits better." - Sole
R.I.P. Robert Feldhoff (1962-2009) :(
11-16-2007 at 09:46 PM
View Profile Send Private Message to User Send Email to User Visit Homepage Show all user's posts Quote Reply
Insane
Level: Master Delver
Avatar
Rank Points: 154
Registered: 08-06-2005
IP: Logged
icon Re: A Simple Server (0)  
Briareos wrote:
Look no further than the swiss army knife of network tools, the mighty netcat...

np: Thomas Brinkmann - Track 04 (Concept 1 96:VR)

Too bad I'm running Windows and not Linux. :(

-Insane
11-17-2007 at 03:37 PM
View Profile Send Private Message to User Visit Homepage Show all user's posts This architect's holds Quote Reply
Briareos
Level: Smitemaster
Avatar
Rank Points: 3516
Registered: 08-07-2005
IP: Logged
icon Re: A Simple Server (+1)  
Insane wrote:
Too bad I'm running Windows and not Linux. :(
*sigh*

Insane, meet Google...

np: Supermayer - Please Sunrise (Supermayer Save The World)

____________________________
"I'm not anti-anything, I'm anti-everything, it fits better." - Sole
R.I.P. Robert Feldhoff (1962-2009) :(
11-17-2007 at 05:15 PM
View Profile Send Private Message to User Send Email to User Visit Homepage Show all user's posts Quote Reply
Ravon
Level: Master Delver
Avatar
Rank Points: 220
Registered: 02-19-2004
IP: Logged
icon Re: A Simple Server (0)  
Insane wrote:
Too bad I'm running Windows and not Linux. :(

Yes, it is too bad ;)
11-17-2007 at 06:16 PM
View Profile Send Private Message to User Send Email to User Show all user's posts This architect's holds Quote Reply
New Topic New Poll Post Reply
Caravel Forum : Other Boards : Anything : A Simple Server (Command-line tcp server.)
Surf To:


Forum Rules:
Can I post a new topic? No
Can I reply? No
Can I read? Yes
HTML Enabled? No
UBBC Enabled? Yes
Words Filter Enable? No

Contact Us | CaravelGames.com

Powered by: tForum tForumHacks Edition b0.98.8
Originally created by Toan Huynh (Copyright © 2000)
Enhanced by the tForumHacks team and the Caravel team.