I'm not sure why you want to use send_data, but your code makes no sense to me. For instance, you can not send pointers over the network. Pointers point to data in memory and are meaningless when there is no data. You must put all info into the struct you're sending.

Commands like send_data are for us nerds only. For using them you must understand programming on a level beyond the lite-C workshops - f.i. by reading a "real" C/C++ tutorial. For sending simple things like names or variables, just use the string and var send commands.