CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    May 2002
    Location
    Atlanta,GA
    Posts
    262

    Asyncrhonus Socket Calls

    In C# I am writing some socket programs and using the Async callback methods. I can't seem to find any definitive answer to this. Do the callback methods always execute on a different thread from the one that setup the callbacks? Thanks


    Jared Parsons
    Jared

  2. #2
    Join Date
    May 2002
    Location
    New York, New York
    Posts
    20

    Re: Asyncrhonus Socket Calls

    I would assume so, considering that the thread that setup the callback has little control of the thread that performs the callback, and in contrast the thread performing the callback has no control of the thread that requested the callback, or what type of state that thread may be in.

    Regards



  3. #3
    Join Date
    May 2002
    Location
    New York, New York
    Posts
    20

    Re: Asyncrhonus Socket Calls

    In my previous post, I guess what I am trying to say is that a callback in the traditional sense is always executed in the context of the calling thread, all in all, it is just another function call, nothing special.



  4. #4
    Join Date
    May 2002
    Location
    Atlanta,GA
    Posts
    262

    Re: Asyncrhonus Socket Calls

    I would think it would happen that way. The documentation was a little ambiguous in this sense. The only other way that I could think it would happenw ould be similar to a Unix Interrupt.

    Jared Parsons
    Jared

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured