blob: 8f2056593fc1c80ce53409d561d18d0ce43546cf (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
/*
* som_net / simple library example (c) by jak1
*
* som_net / simple library example is licensed under a
* Creative Commons Attribution-ShareAlike 4.0 International License.
*
* You should have received a copy of the license along with this
* work. If not, see <http://creativecommons.org/licenses/by-sa/4.0/>.
* Footer
*/
#ifndef SHARED_HOOK_H
#define SHARED_HOOK_H
#include <arpa/inet.h> // inet_addr()
#include <strings.h>
#include <stdio.h>
#include <stdbool.h>
#include <netdb.h>
#include <netinet/in.h>
#include <stdlib.h>
#include <string.h>
#include <sys/socket.h>
#include <sys/types.h>
#include <unistd.h> // read(), write(), close()
#define MAX_BUFFER_SIZE 80
#define PORT 50501
#define SA struct sockaddr
int start_chat(int is_client);
#endif // SHARED_HOOK_H
|