add some notes and basic code
This commit is contained in:
@@ -1,13 +1,20 @@
|
||||
#ifndef __SERVER_H__
|
||||
#define __SERVER_H__
|
||||
|
||||
#include <string.h>
|
||||
#include <sys/types.h>
|
||||
#include <sys/socket.h>
|
||||
#include <arpa/inet.h>
|
||||
#include <netdb.h>
|
||||
#include <netinet/in.h>
|
||||
#include <sys/socket.h>
|
||||
#include <sys/types.h>
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
#define PORT 3030
|
||||
// how many pending connections the queue will hold
|
||||
#define BACKLOG 10
|
||||
|
||||
int start_server(void);
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user