Using enums, adding a response packet type
Adding _perror()
Using open_socket
adding send and recv