Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
UDP and winsock
Message
De
16/06/2020 09:41:39
 
 
À
16/06/2020 09:11:14
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Titre:
Divers
Thread ID:
01674900
Message ID:
01674901
Vues:
61
>Hi all, I got into this problem.
>I need to send three bytes to a sort of trafficlight (ie : chr(160) + chr(5) + chr(1) ). The problem is that the receiver does not react as i expect. Looks like it does not buffer info so that i loose many packets. I tested wih a java program and in this case it worked fine.
>My question is, is there any settings I can make ? Maybe wnsock is sending something i don't know ? As you can see i'm not expert at all in those things :)
>
>thank you

There's a program called Wireshark you can download and install in Windows. It will allow you to see exactly what data is sent over the network. If you install Wireshark and look at the data sent from the Java program that works, and compare it to the program you've created that doesn't, then maybe you can figure it out.

To my knowledge, Winsock by itself sends exactly what you send only. If you use ssl_read() and ssl_write() then it will translate what you send and works on hidden protocols. But a raw socket connection will transmit and receive exactly what you push through character by character.

If you can't figure it out and can post some of the code you're using ... maybe we could help more.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform