add error codes,connect/send object in client,header for data packet,methods in client library