in a class the only way I really know of sending data across the client-server barrier is setting vars to attr[ #] and checking on the other side for that attr
EDIT: I also remember Invern making a pretty good function pack for communicating across the barrier.
Here's the link
Client <-> Serverside Function Caller
Maybe this can help you a bit, it's helped me before.