I made a java program just for fun this program allows you to control the seconds computer mouse using the first computer’s mouse. so everytime the mouse moves some the x and the y of the cursor is sent client application. which then uses the robot class to move the mouse. right now I am using sockets to communicate and it is really slow what is a better way to do it any help would be apritited. if possible please provide some code
thanks
I made a java program just for fun this program allows you to control
Share
If both applications live in different virtual machines, then communication via sockets is a very good approach.
If it is too slow, you may consider
Considering you comment to this answer:
As you send bytes over sockets, performance will be increased if you encode the mouse positions to
bytevalues rather then toString:(It starts and ends with some magic, the point is the encoding)