CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5
  1. #1
    Join Date
    Feb 2005
    Posts
    9

    Question Async Socket: how to do in Win 32 console application?

    Hello everyone,

    I want to make a Win32 console application in VC++ for client -server using sockets. I want to use Asynchronous sockets...


    (1)I don't want to make MFC application (i.e. I don't want to use CAyncsocket support in MFC).

    (2)I don't want to make it a Win32 windows application(i.e. I don't want to use WSAAsysnselect etc.).

    Can anyone kindly suggest me whether it is possible or not and if yes, please guide me in this regard..

    Thank You
    Sourabh

  2. #2
    Join Date
    May 2003
    Location
    Islamabad, Pakistan
    Posts
    284

    Re: Async Socket: how to do in Win 32 console application?

    use winsoc API in synchronous mode

  3. #3
    Join Date
    May 2006
    Posts
    1

    Re: Async Socket: how to do in Win 32 console application?

    Quote Originally Posted by sharmasourabh54
    Hello everyone,

    I want to make a Win32 console application in VC++ for client -server using sockets. I want to use Asynchronous sockets...


    (1)I don't want to make MFC application (i.e. I don't want to use CAyncsocket support in MFC).

    (2)I don't want to make it a Win32 windows application(i.e. I don't want to use WSAAsysnselect etc.).

    Can anyone kindly suggest me whether it is possible or not and if yes, please guide me in this regard..

    Thank You
    Sourabh


    Hi Sourabh ,
    I am also facing the same problem . i to want to make a dll
    which will handle async comm (udp and tcp both) ,but i cant use
    mfc AsynSocket for that , i even tryed ioctl winsock function for
    both tcp and udp but i cant find out any solution , If till know u
    have solved ur problem or have any infoabout this pl mail me
    at [email protected] or [email protected]

    waiting for ur reply

    God bless u.

  4. #4
    Join Date
    Jul 2005
    Location
    Germany
    Posts
    1,194

    Re: Async Socket: how to do in Win 32 console application?

    WSAEventSelect() is the function four you both.
    Please don't forget to rate users who helped you!

  5. #5
    Join Date
    Jun 2006
    Posts
    6

    Re: Async Socket: how to do in Win 32 console application?

    Pls note that WSAEventSelect is limited to 64 simultainous events (because WaitForMultipleObjects can get only up to 64 handles). If you are planning to support more then 64 connections at once, consider using IOCP.

    Aviv Greenberg

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

Featured