Quantcast
Channel: Chilkat Forum - latest questions
Viewing all articles
Browse latest Browse all 1061

How to get client socket handle after socket.AcceptNextConnectionAsync() in C++

$
0
0

AcceptNextConnection() returns a CkSocket*. However, AcceptNextConnectionAsync() returns a CkTask. It is not apparent how to retrieve the new CkSocket from the CkTask.

CKSocket socket;

CkTask *task = socket.AcceptNextConnectionAsync(1000);

//... time passes ...

if(task->get_Finsihed()) {

//how to get CkSocket?

}

This question is very similar to http://www.chilkatforum.com/questions/10384/how-to-get-the-client-socket-handle-after-an-async-socket_acceptnextconnection-task

However, that question is in C, rather than C++ and I have note been able to find an analogue for CkSocket_LoadTaskResult in CkSocket.h


Viewing all articles
Browse latest Browse all 1061

Trending Articles