|
-
March 15th, 2005, 05:37 AM
#1
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
-
March 15th, 2005, 05:50 AM
#2
Re: Async Socket: how to do in Win 32 console application?
use winsoc API in synchronous mode
-
May 29th, 2006, 09:36 AM
#3
Re: Async Socket: how to do in Win 32 console application?
 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.
-
May 29th, 2006, 11:30 AM
#4
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!
-
June 4th, 2006, 07:14 AM
#5
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|