i need an example for real time input

i will supply real-time information by a network socket connection.i want to use this information for objects position. i will record this information as action keys. where can i find examples about this topics?

not sure about network stuff, but for realtime changes of position/rotation, check out Blender BLOOP project: