Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Pb using Winsock in UDP
Message
De
06/08/2002 03:59:35
 
 
À
05/08/2002 05:27:45
Roman Segaud
Laboratoires Fortepharma
Nice, France
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Divers
Thread ID:
00686108
Message ID:
00686489
Vues:
35
First, you must set RemoteHost and RemotePort properties to specify other control, with which you will communicate using UDP.

Second, when you want to get all sent data, you do not need to specify nBytesTotal in GetData method. Instead, in your case, use:
this.GetData(@lcData)
Using nBytesTotal causes Winsock to truncate all other received data and may cause loss of information in your case.

See MSDN article "Using the Winsock Control" for more information.

Plamen Ivanov
MCSD .NET Early Achiever and MCAD .NET Charter Member (VB .NET/SQL Server 2000)
MCSD (VB 6.0/SQL Server 2000)

VB (.NET) - what other language do you need in the whole Universe?...

Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform