In general player transmits data as XDR encoded structures over a TCP socket. It is not safe to just treat the structure as opaque data as they are copied and manipulated by generated functions.

The exception to this is the opaque interface which does not interpret its data at all, it is simply an array of bytes. If you are just wanting to transmit an array of floating point numbers you could use the aio interface.

Toby

2009/5/27 ElmarRueckert <elmar.rueckert@student.tugraz.at>

Hi,

How is the data transmission is done in player.  Many interfaces implement a
data array of the type uint8_t*. For ex. Camera or Audio.

But what if i want publish a float array. Could this be done by copying the
float array representation in the memory with:
memcpy(&uint8_t_Array, &float_Array,
sizeof(float)*num_elements_in_float_array)

thank's a lot, Elmar Rückert
--
View this message in context: http://www.nabble.com/Data-Transmission-In-General-tp23740492p23740492.html
Sent from the playerstage-users mailing list archive at Nabble.com.


------------------------------------------------------------------------------
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT
is a gathering of tech-side developers & brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing, &
iPhoneDevCamp as they present alongside digital heavyweights like Barbarian
Group, R/GA, & Big Spaceship. http://p.sf.net/sfu/creativitycat-com
_______________________________________________
Playerstage-users mailing list
Playerstage-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/playerstage-users



--
This email is intended for the addressee only and may contain privileged and/or confidential information