Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Socket class
Message
 
À
20/11/2010 10:50:25
Information générale
Forum:
ASP.NET
Catégorie:
Formulaires
Titre:
Versions des environnements
Environment:
C# 3.0
Application:
Desktop
Divers
Thread ID:
01489829
Message ID:
01489914
Vues:
32
>>I'm really just started with .NET (mostly for fun :o)
>>I have to listen a TCP port for some data, but I do not want to do this in a loop.
>>What Event I should handle?
>>Every example I found is put the code in a loop (or a very complex async code).
>>In the very old WinSock colntrol there was a DataArival event, where it is in Socket class?
>
>The Socket class has *no* events per se. But async callbacks are pretty straightforward (once you get used to the syntax)
>Bear in mind that the ability to make asynchronous callbacks using BeginInvoke/EndInvoke is implemented at the heart of the .NET framework - if you're going to use .NET it's worth taking the time to understand how this is implemented (and how useful it can be):
>
>http://msdn.microsoft.com/en-us/library/2e08f6yc(v=VS.100).aspx


Thanks Viv.
I'll try it.
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform