/* * Get the Socket object used for the connection to the server */ static VALUE connection_get_socket(VALUE self) { IrmoConnection *conn = unwrap_connection(self); IrmoSocket *sock; sock = irmo_connection_get_socket(conn); return wrap_socket(sock); }