Like Tree1Likes
  • 1 Post By anduril462

Basic Echo Server

This is a discussion on Basic Echo Server within the Networking/Device Communication forums, part of the General Programming Boards category; I'm looking for an example/tutorial for a basic echo server using winsock (WIN32). I use MinGW and I prefer to ...

  1. #1
    Registered User
    Join Date
    Jan 2012
    Posts
    17

    Basic Echo Server

    I'm looking for an example/tutorial for a basic echo server using winsock (WIN32). I use MinGW and I prefer to stay away from C++ because C makes more sense to me.

    I've tried googling but I must be doing a bad job because i keep getting C++ or Linux tutorials.

  2. #2
    Registered User
    Join Date
    Nov 2010
    Location
    Long Beach, CA
    Posts
    5,444
    Let me google that for you

    Don't know what you searched for, but that looks like it came up with winsock code in C. The Winsock API is in C, so C++ code that uses it will use it in a C like manner that should translate easily to C. Both Linux sockets and Winsock are based off of Berkeley's BSD sockets implementation. Linux sockets are much closer to the original, but Winsock isn't far off. Any Linux examples should work with minor modifications. Winsock references on Microsoft's website will help you a lot too, there's probably example code there too. Also, it's *nix specifc, but Google for Beej's guide to network programming.
    Salem likes this.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. EPOLL echo server not concurrent
    By lantzvillian in forum C Programming
    Replies: 1
    Last Post: 03-07-2011, 10:48 AM
  2. Echo server
    By Poincare in forum C Programming
    Replies: 2
    Last Post: 10-27-2009, 08:35 PM
  3. TCP/IP client & echo server
    By Jordban in forum C++ Programming
    Replies: 2
    Last Post: 06-06-2005, 06:39 PM
  4. Server receive and echo
    By freddyg in forum C Programming
    Replies: 2
    Last Post: 10-30-2002, 05:17 AM
  5. echo server
    By anobody in forum Windows Programming
    Replies: 4
    Last Post: 10-07-2002, 07:18 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21