можно ли зарегистрировать функцией WSAAsyncselect два сообщения от разных сокетов но для одного окна?
хм чот неполучается вот регистрирую сообщения с помощью WSAAsyncSelect: Код (Text): invoke WSAAsyncSelect,hSocket2,hWin,COMMANDSOCK,FD_READ+FD_ACCEPT invoke WSAAsyncSelect, CommandConnection.hSocket, hWin,COMMANDSOCK, FD_CONNECT+FD_CLOSE+FD_READ Вот , собственно, обработка сообщений от сокетов: Код (Text): Case COMMANDSOCK Switch wParam Case hClient Switch lParam Case FD_READ invoke SetEvent,CommandConnection.CommandReceived invoke recv, hClient, addr ComBuff, 64, 0 invoke MessageBox,NULL,hIP,offset Com_User,MB_OK invoke MessageBox, NULL, addr ComBuff, addr hClient, MB_OK mov eax,buffer22 mov ComBuff,eax Endsw Case hSocket2 Switch lParam Case FD_ACCEPT invoke MessageBox,NULL,NULL,hIP,MB_OK invoke accept, hSocket2, 0, 0 mov hClient, eax ; invoke WSAAsyncSelect,hClient,hWin,COMMANDSOCK,FD_READ+FD_ACCEPT Case FD_CLOSE invoke closesocket, hClient mov hClient, 0 Case FD_READ invoke SetEvent,CommandConnection.CommandReceived invoke recv, hClient, addr ComBuff, 64, 0 invoke MessageBox,NULL,hIP,offset Com_User,MB_OK invoke MessageBox, NULL, addr ComBuff, addr hClient, MB_OK mov eax,buffer22 mov ComBuff,eax Endsw Case hSocket Switch lParam Case FD_CONNECT invoke MessageBox,NULL,NULL,hIP,MB_OK invoke accept, hSocket2, 0, 0 mov hClient, eax ; Case FD_CLOSE invoke closesocket, hClient mov hClient, 0 invoke closesocket, CommandConnection.hSocket mov CommandConnection.hSocket, 0 Case FD_READ HIWORD lParam invoke SetEvent,CommandConnection.CommandReceived invoke recv, CommandConnection.hSocket, addr ComBuff, 64, 0 invoke MessageBox, NULL, addr ComBuff, addr ListViewClass, MB_OK mov eax,buffer22 mov ComBuff,eax Case FD_CONNECT invoke MessageBox, NULL, addr Connect_Success, addr Ftp1, MB_OK; установлено соединение invoke send, CommandConnection.hSocket, addr Com_User, eax, 0 ;конец обработки сообщений от сокетов Endsw Endsw