Hi,
I'm working on a robot navigation projet using java. I am using stepper motors to control a navigation camera, and they are controlled by some software I did not write written in C. Having used sockets in Java they seemed relatively simple.
The C code basically sits in an infinite loop waiting for input. When it gets it, it loops, does some stuff, and we start again. I thought it would be relatively simple to implement a socket to listen for incoming connections on port X for input, rather than from the keyboard as now. This would allow my main java program to control my stepper motors by isuing commands to the port the socket was listening to.
However, windows sockets seem an order of magnitude more complicated than in Java - does anyone have any advice / warnings / hints? Is it far more complicated than I imagined?
Cheers,
Ben
I'm working on a robot navigation projet using java. I am using stepper motors to control a navigation camera, and they are controlled by some software I did not write written in C. Having used sockets in Java they seemed relatively simple.
The C code basically sits in an infinite loop waiting for input. When it gets it, it loops, does some stuff, and we start again. I thought it would be relatively simple to implement a socket to listen for incoming connections on port X for input, rather than from the keyboard as now. This would allow my main java program to control my stepper motors by isuing commands to the port the socket was listening to.
However, windows sockets seem an order of magnitude more complicated than in Java - does anyone have any advice / warnings / hints? Is it far more complicated than I imagined?
Cheers,
Ben