Thread: Basic Echo Server

  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,909
    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.

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, 11: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, 06:17 AM
  5. echo server
    By anobody in forum Windows Programming
    Replies: 4
    Last Post: 10-07-2002, 07:18 AM