first commit
This commit is contained in:
18
CS4210/Project 2/common/networking/networking.h
Normal file
18
CS4210/Project 2/common/networking/networking.h
Normal file
@@ -0,0 +1,18 @@
|
||||
#ifndef _NETWORKING_H_
|
||||
#define _NETWORKING_H_
|
||||
|
||||
#include <sys/types.h>
|
||||
|
||||
#define MAXPENDING 5 /* Max Requests */
|
||||
#define REUSE_PORT 1
|
||||
|
||||
int ContructTCPSocket(unsigned short port_number);
|
||||
int AcceptConnection(int server_socket);
|
||||
int uber_recv(int sock, size_t max_to_receive, char *delimit, char** ppcData);
|
||||
|
||||
int http_recv(int sock, size_t max_to_receive, char **ppcData);
|
||||
|
||||
//From client
|
||||
int createTCPSocket(char *ipaddr, unsigned short server_port);
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user