Hey , i am new to rpyc 3  , and i have a question.
I want to start a threaded server on my own socket implementation
(i am using an adress family that python not supports) -
what is the right way to do this ?

currently my code looks like this
-----------------------------------------------------------------------------------------------------------
from rpyc.utils.server import ThreadedServer

my_binded_socket = my_special_socket_factory( ....)

# I use dummy host - and port just to create a threaded server.
server = ThreadedServer(rpyc.SlaveService,
hostname="127.0.0.1",port=5555)

# than i replace the listener with the socket i created before.
server.listener = my_binded_socket
server.start()
-------------------------------------------------------------------------------------------------------------

I must say that this way works fine - but its hacky and i think
that there must be a better way to this.
So Is there?

Reply via email to