good afternoon.
I can not understand how to call the rpc method via the pure tcp

This simple server:

import aiomas

class Server:
    router = aiomas.rpc.Service()

    def ping(self, i):
        print('Ping receive data: {}'.format(i))
        return i

if __name__ == '__main__':
    server =
        ('', 5000),
    print('Server run')

And this my problem tcp client

import socket
import pickle

MESS = ['ping', [1]]

s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s.connect(('', 5000))
data = s.recv(1024)

Tell me please what's wrong. It is necessary to understand in order to 
realize this in other languages.Much grateful for any hint

Reply via email to