Click to See Complete Forum and Search --> : Async Socket: how to do in Win 32 console application?


sharmasourabh54
March 15th, 2005, 04:37 AM
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

jawadhashmi
March 15th, 2005, 04:50 AM
use winsoc API in synchronous mode

satamrohan
May 29th, 2006, 09:36 AM
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 satamrohan@yahoo.com or satam.rohan@rediffmail.com

waiting for ur reply

God bless u.

philkr
May 29th, 2006, 11:30 AM
WSAEventSelect() is the function four you both.

avivgr
June 4th, 2006, 07:14 AM
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