Winsock WSAAsyncSelect

This is a discussion on Winsock WSAAsyncSelect within the C Programming forums, part of the General Programming Boards category; Hello, can anyone give me sample source code for WSAAsyncSelect(); and can i use this command in console API program?? ...

  1. #1
    Registered User
    Join Date
    May 2006
    Posts
    1

    Winsock WSAAsyncSelect

    Hello,

    can anyone give me sample source code for WSAAsyncSelect(); and can i use this command in console API program??

    Thanks.

  2. #2
    Registered User Tonto's Avatar
    Join Date
    Jun 2005
    Location
    New York
    Posts
    1,465
    'Tis a bit funky. You could create a window from your console program, a hidden one if you want, and have a message loop and a windowprocedure and everything, or you could look into WSAEventSelect.

    ╔╗╔╦══╦╗╔╦══╦╗
    ║╚╝║╔╗║╚╝║╔╗║║
    ║╔╗║╠╣║╔╗║╠╣╠╣
    ╚╝╚╩╝╚╩╝╚╩╝╚╩╝

    codez http://code.google.com/p/zxcvbn/

  3. #3
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,494
    Just another empty "gimme the code I'm too dumb to use a search engine" post.
    No information on what it's for, what's been tried so far, what experience level to aim at - nada, zilch, zippo, nowt.

    Read this and get a clue
    http://www.catb.org/~esr/faqs/smart-questions.html
    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.

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. 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
  3. winsock
    By pode in forum Networking/Device Communication
    Replies: 2
    Last Post: 09-26-2003, 12:45 AM
  4. WSAAsyncSelect I/O & Multithreading :: Winsock
    By kuphryn in forum Windows Programming
    Replies: 4
    Last Post: 09-27-2002, 02:28 AM
  5. WSAAsyncSelect I/O Mode :: Winsock
    By kuphryn in forum Windows Programming
    Replies: 1
    Last Post: 05-12-2002, 03:23 PM

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