Using Winsock

This is a discussion on Using Winsock within the Windows Programming forums, part of the Platform Specific Boards category; I am trying to make 2 programs both in pure win32 api, 1 a server and another a client, the ...

  1. #1
    Registered User
    Join Date
    Aug 2003
    Posts
    288

    Using Winsock

    I am trying to make 2 programs both in pure win32 api, 1 a server and another a client, the main purpose is to send data between them and also to support multiple clients.

    I have searched the internet for tutorials or examples on this but all I find are examples in DOS or MFC, also I was wondering if anyone knows of an easy to use wrapper for Winsock?

    Any form of help will be much appreciated, Thanks

    PaYnE

  2. #2
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,344
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

  3. #3
    Registered User
    Join Date
    Nov 2001
    Posts
    1,348
    Check out CodeProject code section for example.

    I highly recommend Network Programming for Microsoft Windows, Second Edition by Anthony Jones and Jim Ohmund.

    Kuphryn

  4. #4
    Registered User
    Join Date
    Aug 2003
    Posts
    288
    thanx for all the replies guyz

    ive gone through all the links, and so far ive found that johnnies winsock tutorial helped me most, the only thing was that he didnt provide any source or examples and thats what im lacking.

    if anyone knows of/can provide me with an example program which demonstrates 1 server with the ability to have many clients connect to it and transmit data between them. it would be amazing if it was in Win32 but i wouldnt mind DOS, thanx again and any help would be appreciated

  5. #5
    Registered User Codeplug's Avatar
    Join Date
    Mar 2003
    Posts
    4,607
    Originally posted by kuphryn
    I highly recommend Network Programming for Microsoft Windows, Second Edition by Anthony Jones and Jim Ohmund.
    Ditto!!
    Get this book if you seriously want to learn the WinSock API and how to use it effectively.

    You're only going to gleam small pieces of the puzzle using tutorials.

    Another good book.

    gg

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Winsock issues
    By tjpanda in forum Windows Programming
    Replies: 3
    Last Post: 12-04-2008, 07:32 AM
  2. Winsock Messaging Program
    By Morgul in forum Windows Programming
    Replies: 13
    Last Post: 04-25-2005, 04:00 PM
  3. Winsock - Where do i start?
    By Brain Cell in forum Networking/Device Communication
    Replies: 5
    Last Post: 02-14-2005, 12:39 PM
  4. Where do I initialize Winsock and catch messages for it?
    By Lithorien in forum Windows Programming
    Replies: 10
    Last Post: 12-30-2004, 11:11 AM
  5. winsock
    By pode in forum Networking/Device Communication
    Replies: 2
    Last Post: 09-26-2003, 12:45 AM

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