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
Re: Async Socket: how to do in Win 32 console application?
use winsoc API in synchronous mode
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.
Re: Async Socket: how to do in Win 32 console application?
WSAEventSelect() is the function four you both.
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