-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathServer.h
More file actions
36 lines (28 loc) · 769 Bytes
/
Copy pathServer.h
File metadata and controls
36 lines (28 loc) · 769 Bytes
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
33
34
35
//
// Server.h
// Server
//
// Created by פנחס מנחם אפרים on 02/12/2022.
//
#ifndef Server_h
#define Server_h
#include <sys/socket.h>
#include <netinet/in.h>
typedef struct Server{
int domain;
int service;
u_long interfase;
int port;
int backlog;
struct sockaddr_in address;
int socket;
void (*launch)(struct Server* server);
} Server_t;
Server_t server_constructor(int domain,
int service,
int protocol,
u_long interfase,
int port,
int backlog,
void (*launch)(Server_t* server));
#endif /* Server_h */