These are all the different types used by the system, it is important to follow these standards so things will functions properly. One has not to support all these types. This information is importent to:
// format : ID[byte] type[byte] timestamp[long] // * mouse: ID[byte] type[byte] timestamp[long] button[byte] clicks[byte] x[int] y[int] // * key: ID[byte] type[byte] timestamp[long] code[int] modifier[byte] // * size: ID[byte] type[byte] timestamp[long] x[int] y[int] // * envir: ID[byte] type[byte] timestamp[long] brNameLength[int] brName[bytes] brVerMajor[int] brVerMinor[int] // osNameLength[int] osName[bytes] osVerMajor[int] osVerMinor[int] // ipLength[int] ip[bytes] languageLength[int] language[bytes] // * start: ID[byte] type[byte] timestamp[long] // * stop: ID[byte] type[byte] timestamp[long] // * chat: ID[byte] type[byte] timestamp[long] msgLength[int] msg[bytes] toUser[byte] // * time: ID[byte] type[byte] timestamp[long]
This is directly from the source code. Not all these events are logical to use in a webpage or in MAX but here they are anyway. When calling the send-functions in PlotIOApplet make sure to use these numbers to make things standard.
The data sent over UDP is coded in the following way
byte: 1-byte value int: four bytes, high byte first long: eight bytes, high byte first