Custom responder func for raw incoming network messages

I’m using SuperCollider to talk with a “server” software which is capable of interpret only raw messages (TCP / OSC).

I’m able to do that using these lines:

~remote_server = NetAddr("", 3039);
~remote_server.sendRaw("raw message");

but, what if I need to read back responses from that server?
I’m used to create dispatcher functions to detect incoming OSC and MIDI message but I never tried to do the same for other kind of network messages.

Is there already a generic class to do that in SC? or maybe I have to create my own one?
Should it be a sudclass of “AbstractResponderFunc”?

Thank you so much for your help.