Thread: Using Winsock

  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 int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,659
    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.

  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,981
    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, 08: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, 01: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, 12:11 PM
  5. winsock
    By pode in forum Networking/Device Communication
    Replies: 2
    Last Post: 09-26-2003, 12:45 AM