commented net.c
This commit is contained in:
parent
3c077c550f
commit
936c9009e4
16
src/net.c
16
src/net.c
|
@ -1,19 +1,21 @@
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <unistd.h>
|
|
||||||
#include <errno.h>
|
#include <unistd.h> // ?
|
||||||
#include <string.h>
|
#include <errno.h> // geguttenbergt aus bejees networking guide
|
||||||
|
#include <string.h> // ?
|
||||||
|
|
||||||
|
// networking
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <sys/socket.h>
|
#include <sys/socket.h>
|
||||||
#include <netinet/in.h>
|
#include <netinet/in.h>
|
||||||
#include <arpa/inet.h>
|
#include <arpa/inet.h>
|
||||||
#include <netdb.h>
|
#include <netdb.h>
|
||||||
|
|
||||||
// usleep support
|
#include <time.h> // nanosleep
|
||||||
#include <time.h>
|
|
||||||
|
|
||||||
#include "misc.h"
|
#include "misc.h" // prog_info
|
||||||
#include "msg.h"
|
#include "display.h" // callback
|
||||||
|
|
||||||
void *get_in_addr(struct sockaddr *sa)
|
void *get_in_addr(struct sockaddr *sa)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue
Block a user