Menu

Recieve Progress and Cancellations

2009-11-18
2013-01-28
  • Nick Pateman

    Nick Pateman - 2009-11-18

    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.

     
  • Nick Pateman

    Nick Pateman - 2009-11-18

    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.

     
  • Yunhong Gu

    Yunhong Gu - 2009-11-22

    For the first question, you can use select first, then use accept only if select indicates that a new connection is ready.

     

Log in to post a comment.