I have a method called funct which i want to have as my callback function when i am using the beingreceive socket method in c#.
s.BeginReceive(buffer, 0, buffer.Length, System.Net.Sockets.SocketFlags.None,
new AsyncCallback(funct), null);
The error that am getting is:
No overload for 'funct' matches delegate 'System.AsyncCallback'
What might be the problem here?
"funct" must be a method with the following signature:
void funct(IAsyncResult ar) { }
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With