From processing to arduino

pedroply:
I am sending int like arduinoPort.write(pos); which is an int, how do I combine that with the strtok() command?

You don't. You read in the two bytes individually, and pack them into an int. strok() only works if you decide to use an ASCII encoding scheme.