Results 1 to 3 of 3

Thread: [2008] Simple TCP Server

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Dec 2004
    Location
    Ohio
    Posts
    153

    [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

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    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.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  3. #3
    Raging swede Atheist's Avatar
    Join Date
    Aug 2005
    Location
    Sweden
    Posts
    8,018

    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.
    Rate posts that helped you. I do not reply to PM's with coding questions.
    How to Get Your Questions Answered
    Current project: tunaOS
    Me on.. BitBucket, Google Code, Github (pretty empty)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width