Newsgroups : Borland : borland.public.delphi.internet.winsock : 2008 Jun : WSAAsyncSelect in thread

www.cryer.info
Managed Newsgroup Archive

WSAAsyncSelect in thread

Subject:WSAAsyncSelect in thread
Posted by:"Matjaz Cof" (matj..@opal.si)
Date:Thu, 5 Jun 2008 12:08:06

I am writing some tcp/ip controls using WinSock.
I am using WSAAsyncSelect, but i want to use it in thread.
WSAAsyncSelect takes for second parameter HWND, but i want that the
message is posted to second thread not in the main thread.
So i need function that takes the same parameters as WSAAsyncSelect do,
but instead of HWND it would takes ThreadID.

I suppose that WSAAsyncSelect call:
PostMessage(SecondParameterOfWSAAsyncSelect, ...
but i need something like that:
PostThreadMessage(....

Is something like that possible? I want that the message (FD_CONNECT,
FD_WRITE, FD_CLOSE, ...) is posted to the thread.

Replies:

www.cryer.info
Managed Newsgroup Archive