def send_all(self, data): self.client_socket.sendall(pickler.pickle_data(data))
def send_all(sock, order): sock.sendall(pickler.pickle_data(order))
def send_back(self, data_out): data_out_raw = pickler.pickle_data(data_out) self.connection.sendall(data_out_raw)
def send_back(connection, data_out): data_out_raw = pickler.pickle_data(data_out) connection.sendall(data_out_raw)