Click here to Skip to main content
16,004,227 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How to find memory allocated to a linked lists Pin
vividtang11-May-04 1:16
vividtang11-May-04 1:16 
GeneralNeed help Pin
Aigledefer9-May-04 20:00
Aigledefer9-May-04 20:00 
GeneralRe: Need help Pin
_foo9-May-04 20:18
_foo9-May-04 20:18 
GeneralRe: Need help Pin
Aigledefer10-May-04 0:36
Aigledefer10-May-04 0:36 
GeneralRe: Need help Pin
Mike Dimmick10-May-04 1:38
Mike Dimmick10-May-04 1:38 
GeneralCFileDialog/AutoComplete Problem Pin
timo_the_man9-May-04 19:52
timo_the_man9-May-04 19:52 
GeneralReading from a socket Pin
monrobot139-May-04 18:33
monrobot139-May-04 18:33 
GeneralRe: Reading from a socket Pin
Member 10582029-May-04 18:46
Member 10582029-May-04 18:46 
use the recv function to read from the socket.
the recv function can be blocking or non-blocking
according to the connection specified...
these sockets are known as synchronous sockets

but, if u wish to get a notification whenever a message reaches the port , then use asynchronous sockets.

there are various options: FD_READ|FD_WRITE|FD_CLOSE|FD_CONNECT
, etc etc...

u have to use the API: WSAAsyncSelect....
search for the API in MSDN and include the required library and header file..
i think the library is : Ws2_32.lib
and header file is winsock2.h , i think winsock.h will also work...
u have to create a user defined message:
#define MY_MSG WM_USER + 100 OR something.... as u wish...
this is one of the arguments in the API call....

we can achieve this also using synchronous sockets , but asynchronous is much more easy....

GeneralRe: Reading from a socket Pin
David Crow10-May-04 2:59
David Crow10-May-04 2:59 
GeneralAnyone used c-tree plus by FairCom Pin
Joe Woodbury9-May-04 17:56
professionalJoe Woodbury9-May-04 17:56 
GeneralRe: Anyone used c-tree plus by FairCom Pin
Steve S9-May-04 21:35
Steve S9-May-04 21:35 
GeneralRe: Anyone used c-tree plus by FairCom Pin
David Crow10-May-04 3:00
David Crow10-May-04 3:00 
Generalsending mails using SMTP Pin
Member 10582029-May-04 17:47
Member 10582029-May-04 17:47 
GeneralRe: sending mails using SMTP Pin
Steve S9-May-04 21:43
Steve S9-May-04 21:43 
GeneralRe: sending mails using SMTP Pin
Paul Ranson10-May-04 1:25
Paul Ranson10-May-04 1:25 
Generalabout "locale" Pin
vividtang9-May-04 17:00
vividtang9-May-04 17:00 
QuestionHow to access USB data Pin
Billar9-May-04 16:42
Billar9-May-04 16:42 
GeneralConsole window in Windows Pin
Iceberg769-May-04 15:14
Iceberg769-May-04 15:14 
GeneralRe: Console window in Windows Pin
Member 10582029-May-04 17:59
Member 10582029-May-04 17:59 
GeneralRe: Console window in Windows Pin
Iceberg769-May-04 18:13
Iceberg769-May-04 18:13 
GeneralRe: Console window in Windows Pin
_foo9-May-04 18:26
_foo9-May-04 18:26 
GeneralRe: Console window in Windows Pin
Member 10582029-May-04 18:57
Member 10582029-May-04 18:57 
GeneralRe: Console window in Windows Pin
FirstPerson9-May-04 20:46
FirstPerson9-May-04 20:46 
GeneralRe: Console window in Windows Pin
Anthony_Yio10-May-04 1:09
Anthony_Yio10-May-04 1:09 
GeneralMain Window Icon loading Pin
robert_s9-May-04 13:18
robert_s9-May-04 13:18 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.