Click here to Skip to main content
Rate this: bad
Please Sign up or sign in to vote.
See more: C++ C MFC VC++
I have to create an application. The application(server) can listening a port(1020) and multiple clients should be connected to server.
The server application can keep on sending the data to clients onece connection has been established.
please anyone can help me on that.
Posted 21-Dec-12 2:52am
Edited 21-Dec-12 2:54am
Rate this: bad
Please Sign up or sign in to vote.

Solution 1

Have a look at the Remarks section for the accept function[^]
Best regards
Espen Harlinn
Sandeep Mewara at 22-Dec-12 6:17am
Good one!
Espen Harlinn at 22-Dec-12 6:18am
Thank you, Sandeep :-D
Mika Wendelius at 28-Dec-12 10:55am
Excellent link!
Espen Harlinn at 29-Dec-12 7:21am
Thank you, Mika :-D
Rate this: bad
Please Sign up or sign in to vote.

Solution 2

Refer this article
Socket Programming with MFC (Part 1)
It is useful for you.
ranjithkumar81 at 24-Dec-12 1:45am
Hi there,
I saw the example, but still the async socket with multithreading should be happen.
give some example

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 Sergey Alexandrovich Kryukov 380
1 OriginalGriff 230
2 DamithSL 200
3 Zoltán Zörgő 149
4 BillWoodruff 120
0 OriginalGriff 7,610
1 DamithSL 5,559
2 Sergey Alexandrovich Kryukov 5,324
3 Maciej Los 4,961
4 Kornfeld Eliyahu Peter 4,539

Advertise | Privacy | Mobile
Web01 | 2.8.141223.1 | Last Updated 22 Dec 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100