Results 1 to 3 of 3

Thread: Winsock API beginner question

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Nov 2001
    Location
    Liverpool, England
    Posts
    155

    Winsock API beginner question

    Hello,

    I want to use the Winsock API to interface two computers: a client and a server. The client will send the server a message and wait for, and receive, a response.

    I've never worked with Winsock before so don't really know what the procedure is. What is the sequence of functions I will need to do this? I'm guessing along the lines of ...

    Startup
    Create socket/connect
    Send
    Listen
    Receive
    Disconnect
    End

    Is that the way to go? Any help/advice would be appreciated, thanks.

  2. #2
    Retired VBF Adm1nistrator plenderj's Avatar
    Join Date
    Jan 2001
    Location
    Dublin, Ireland
    Posts
    10,359
    You could use the winsock control to do it.
    There's 2 tutorials on it in my sig ...
    Microsoft MVP : Visual Developer - Visual Basic [2004-2005]

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Nov 2001
    Location
    Liverpool, England
    Posts
    155
    Thanks, I will play around with the control to see how Winsock works. But ultimately I need to use this in a dll and don't like to use froms and controls. It's just the way I am I suppose...

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