parameters: (cls, client_id, n=1)
docstring: Receive n shares and MAC shares from socket
docstring_summary: Receive n shares and MAC shares from socket
docstring_tokens: Receive n shares and MAC shares from socket
function: def read_from_socket(cls, client_id, n=1):
          """ Receive n shares and MAC shares from socket """
          res = [cls() for i in range(n)]
          readsockets(client_id, *res)
          if n == 1:
              return res[0]
          else:
              return res
function_tokens: def read_from_socket ( cls , client_id , n = 1 ) : res = [ cls ( ) for i in range ( n ) ] readsockets ( client_id , * res ) if n == 1 : return res [ 0 ] else : return res