Skip to content
Snippets Groups Projects
Commit bdbe8ca4 authored by Ion-Dorinel FILIP (25005)'s avatar Ion-Dorinel FILIP (25005)
Browse files

Fixed: missing error(...) function.

parent 29a28389
No related branches found
No related tags found
No related merge requests found
......@@ -56,6 +56,13 @@ ssize_t read_line(int sockd, void *vptr, size_t maxlen)
return n;
}
void error(const char *msg)
{
perror(msg);
exit(errno);
}
int open_connection(char *host_ip, int portno, int ip_type, int socket_type, int flag)
{
struct sockaddr_in serv_addr;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment