views:

67

answers:

1

I need to use the function BeginConnect but then i havent been able to find any vivid example of its usage. So i want to have my callback function as say 'funct' how would the syntax be?

The syntax is given in a lot of sites but i am getting a few errors when i use the method. Just send in a line that shows the usage of the method call.

+1  A: 

I am assuming that you are talking about Socket.BeginConnection in the .NET framework. The MSDN documentation contains a couple of examples. This one shows a complete example of how to use the asynchounous functions of socket.

Jakob Christensen