Information générale
Catégorie:
COM/DCOM et OLE Automation
>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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement