Frage

I want to send mouse coordinate to android application using TCP socket.which is the simplest method to do this??should i send one by one or can i send both coordinate in single packet.

War es hilfreich?

Lösung

As long as you can keep track of which value represents which coordinate any method should be fine. Note that the concept of a packet makes little sense in applications using TCP as the protocol allows fragmentation, but ensures all data will arrive and in proper order.

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top