I did it :)
Still the jTCP serialization is off and i use my own one with the use of typecast.
The solution is to send a constant length of the data stream for example 40 bytes.
Then i used the NUMBYTES parameter in jTCP read and deserialized again with typecast.
Now i'm not flexible with the data i send but it's no problem because the sender and receiver know about that.
Unfortunately not. I turned the jTCP serialization off but i need some sort of serialization to send my data.
I wrote my own then with some undocumented MATLAB functions.
If i try it on the same computer my program works but again if i use two different PCs i get an error.
At least it is a new one, a MATLAB and not java error: "Bad version or endian-key"
Maybe you know something about it, seems like jTCP can't read the data properly?!
@Carsten--The OptionalDataException appears to be associated exclusively with serializable objects. I don't know why this is happening, but you could presumably get around this problem by setting 'serialize' to false and converting the payload data to int8 (see last example in jtcp.m header). Would this be an option for you?