BeginReceive method of C # under Socket object

Source: Internet
Author: User
What the hell is going on with the object? Just happen on my machine, modify the IP configuration and put it on the other machine is no problem, can be a good callback. What's so unusual about my machine? Ask the Master!

A thread under the socket object User.sock begins executing the beginreceive statement:

User.sock.BeginReceive (user.buffer,0,user.buffersize,0,new system.asynccallback (dorecevive), user);


The corresponding callback function:

public static void Dorecevive (IAsyncResult ar)
{
Console.WriteLine ("Begin Receive Date, waiting for the called back");
//...

}

After beginreceive on my machine, the dorecevive function is not executed, and the function can be performed well on other machines and

Play "Begin Receive Date, waiting for the called back" string




Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.