#include "config.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "include/connection.h"
#include "include/mc_error.h"
#include "include/macros.h"
Go to the source code of this file.
Functions | |
int | connection_Destroy (connection_p connection) |
connection_p | connection_New (void) |
connection_p | connection_Copy (connection_p connection) |
connection_p connection_Copy | ( | connection_p | connection | ) |
Definition at line 80 of file connection.c.
References connection_s::addr, connection_s::clientfd, connection_s::connect_id, connection_New(), connection_s::remote_hostname, connection_s::serverfd, and strdup.
int connection_Destroy | ( | connection_p | connection | ) |
Definition at line 48 of file connection.c.
References connection_s::clientfd, MC_SUCCESS, and connection_s::remote_hostname.
Referenced by acc_connection_Thread().
connection_p connection_New | ( | void | ) |
Definition at line 69 of file connection.c.
Referenced by connection_Copy(), and listen_Thread().