login about faq

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

asked Jan 31 at 18:23

mgrivich's gravatar image

mgrivich
182

edited Jan 31 at 18:28


Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or __italic__
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×84
×78
×4

Asked: Jan 31 at 18:23

Seen: 391 times

Last updated: Jan 31 at 21:52

powered by OSQA