C # Under the beginReceive method of the socket object, there is no callback function in AsyncCallback after execution.

xiaoxiao2021-03-06  100

what is the problem? Only on my machine, there is no problem with the IP configuration, which is nothing wrong with the IP configuration. Is there any abnormal machine? Ask a master!

Socket object User.sock began to execute the BeginReceive statement:

User.sock.beginReceive (user.buffer, 0, user.buffersize, 0, new system.asynccallback (doreceVive), user;

Corresponding callback function:

Public Static Void DoreceVive (IASYNCRESULT AR) {Console.writeline ("Begin Receive Date, Waiting for the Call Back"); // ...

}

Do not execute the DoreceVive function after BeginReceive on my machine, you can perform this function in other machines and

String "Begin Receive Date, Waiting for the Call Back"

转载请注明原文地址:https://www.9cbs.com/read-114701.html

New Post(0)