Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Pb using Winsock in UDP
Message
From
06/08/2002 03:59:35
 
 
To
05/08/2002 05:27:45
Roman Segaud
Laboratoires Fortepharma
Nice, France
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
00686108
Message ID:
00686489
Views:
32
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?...

Previous
Next
Reply
Map
View

Click here to load this message in the networking platform