I'm in the process of creating a Managed C++ wrapper for the UDT framework for a project of mine. It's all working great but I have a few questions.
- How would I cancel a server from listening for a client? Currently it sits at UDT::accept until a connection comes in.
- How do I monitor progress while recieving a file, currently it sets at recvfile until the operation fails or completes. I'm presuming all I need to do is change this call to handle the operation in chunks?
Thanks in advance for your time and help.
Nick.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Okay scrap the question on monitoring progress as I have done that now, all working just great, just the question stands about cancelling a listening state. Cheers.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi there,
I'm in the process of creating a Managed C++ wrapper for the UDT framework for a project of mine. It's all working great but I have a few questions.
- How would I cancel a server from listening for a client? Currently it sits at UDT::accept until a connection comes in.
- How do I monitor progress while recieving a file, currently it sets at recvfile until the operation fails or completes. I'm presuming all I need to do is change this call to handle the operation in chunks?
Thanks in advance for your time and help.
Nick.
Okay scrap the question on monitoring progress as I have done that now, all working just great, just the question stands about cancelling a listening state. Cheers.
For the first question, you can use select first, then use accept only if select indicates that a new connection is ready.