Sending commands from client to server in batch