|
-
Jan 3rd, 2009, 12:56 AM
#1
Thread Starter
Addicted Member
[2008] Simple TCP Server
I've searched multiple forums and read the MSDN and for the life of me can't figure out how to make a TCP server.
I read that an asynchronous method works faster than a synchronous method, but it also seems a lot harder to program.
Can anyone write up a small example that lets me connect via telnet, then when I send a test message to the server, the server will send back the same message in all caps?
This should be enough for me to get a grasp on it
-
Jan 3rd, 2009, 01:32 AM
#2
Re: [2008] Simple TCP Server
Asynchronous methods aren't faster than synchronous methods. They both do exactly the same thing so they take the same amount of time. The difference is that synchronous methods block, i.e won't let execution continue, until they return, while asynchronous methods return immediately and let execution continue while the operation is performed in the background.
-
Jan 3rd, 2009, 09:46 AM
#3
Re: [2008] Simple TCP Server
What do you mean when you say "connect through telnet"? Telnet is an application layer protocol, it specifies the syntax and semantics of telnet communication. There is really no such thing as connecting through telnet in this context.
I'll throw together the example you are asking for, hold on.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|