#pragma once #include "error.h" #include //sockaddr_in #include #include #include #include // sockaddr #include void msg__amsg_test(int a); // Creates a socket set's it up to listen to listen on the specified port and // returns the file descriptor int msg__create_serv_connection(int portno); // Closes socket connection void msg__destroy_connection(int sockfd); // Creates a socket for the client and returns the file descriptor int msg__accept_cli_connection(int server_sockfd); // Handle logins void msg__handle_login(int *con_sockfd); void msg__login_req(int *con_sockfd, char *usernm, char *passwd); // send and recive commands void msg__handle_command(int *con_sockfd); void msg__command_req(int *con_sockfd, char *usernm, char *passwd);