Click here to Skip to main content
15,897,891 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionHow to handle udp packet from socket and write to serial port? Pin
Member 113345927-Jun-04 5:22
Member 113345927-Jun-04 5:22 
AnswerRe: How to handle udp packet from socket and write to serial port? Pin
valikac27-Jun-04 5:33
valikac27-Jun-04 5:33 
GeneralRe: How to handle udp packet from socket and write to serial port? Pin
Member 113345927-Jun-04 6:06
Member 113345927-Jun-04 6:06 
GeneralRe: How to handle udp packet from socket and write to serial port? Pin
valikac27-Jun-04 16:21
valikac27-Jun-04 16:21 
AnswerRe: How to handle udp packet from socket and write to serial port? Pin
Antony M Kancidrowski28-Jun-04 0:58
Antony M Kancidrowski28-Jun-04 0:58 
GeneralRe: How to handle udp packet from socket and write to serial port? Pin
Member 113345928-Jun-04 1:45
Member 113345928-Jun-04 1:45 
GeneralRe: How to handle udp packet from socket and write to serial port? Pin
Antony M Kancidrowski28-Jun-04 8:57
Antony M Kancidrowski28-Jun-04 8:57 
GeneralRe: How to handle udp packet from socket and write to serial port? Pin
Member 11334592-Jul-04 6:30
Member 11334592-Jul-04 6:30 
Sorry!! Still I can not understand..

for (i = 0; i < 2; i++)
{
hEvents[i] = CreateEvent( NULL, FALSE, FALSE, NULL);

if (hEvents[i] == NULL)
{
printf("CreateEvent error: %d\n", GetLastError() );
ExitProcess(0);
}
}

state = WaitForMultipleObjects( 2, hEvents, FALSE, INFINITE);

??? i think here i should inform which handler is belonging to which event Frown | :(

switch (state)
{
// hEvent[0] was signaled.
case WAIT_OBJECT_0 + 0:

break;
...
..
.
I do not know how to hEvent[0]=>relate to select event

Can you tell me where can I find a sample which explain how to do this?

Thank you Antony!
Burge
GeneralRe: How to handle udp packet from socket and write to serial port? Pin
Antony M Kancidrowski5-Jul-04 9:04
Antony M Kancidrowski5-Jul-04 9:04 
GeneralWTL: List ctrl label edit on dialog (edit:° solved) Pin
peterchen27-Jun-04 4:54
peterchen27-Jun-04 4:54 
GeneralD3DXCreateTextureFromFileInMemory Pin
eugi27-Jun-04 4:53
eugi27-Jun-04 4:53 
GeneralSetScrollInfo Pin
pie27-Jun-04 4:28
pie27-Jun-04 4:28 
GeneralRe: SetScrollInfo Pin
Johan Rosengren27-Jun-04 4:51
Johan Rosengren27-Jun-04 4:51 
GeneralRe: SetScrollInfo Pin
darkbyte27-Jun-04 4:55
darkbyte27-Jun-04 4:55 
GeneralRe: SetScrollInfo Pin
pie27-Jun-04 5:09
pie27-Jun-04 5:09 
GeneralRe: SetScrollInfo Pin
darkbyte27-Jun-04 14:39
darkbyte27-Jun-04 14:39 
GeneralRe: SetScrollInfo Pin
pie28-Jun-04 0:16
pie28-Jun-04 0:16 
Generalhelp needed to get desktop selected/highlighted shortcut Pin
sumon200227-Jun-04 3:27
sumon200227-Jun-04 3:27 
GeneralRe: help needed to get desktop selected/highlighted shortcut Pin
David Crow28-Jun-04 3:17
David Crow28-Jun-04 3:17 
Generalconnection detection&amp; closing the port Pin
shahrokh nabavi27-Jun-04 1:38
shahrokh nabavi27-Jun-04 1:38 
Generaldll linking error Pin
Rajg27-Jun-04 1:16
Rajg27-Jun-04 1:16 
GeneralFastest way to read entire file into memory Pin
georgiek5026-Jun-04 22:03
georgiek5026-Jun-04 22:03 
GeneralRe: Fastest way to read entire file into memory Pin
Rein Hillmann26-Jun-04 22:16
Rein Hillmann26-Jun-04 22:16 
GeneralRe: Fastest way to read entire file into memory Pin
georgiek5027-Jun-04 7:00
georgiek5027-Jun-04 7:00 
GeneralRe: Fastest way to read entire file into memory Pin
palbano28-Jun-04 4:57
palbano28-Jun-04 4:57 

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.