mirror of
https://github.com/etaHEN/etaHEN.git
synced 2026-01-14 12:08:04 +08:00
14 lines
322 B
C
14 lines
322 B
C
#pragma once
|
|
#include <stdio.h>
|
|
#include <string.h>
|
|
#include <stdlib.h>
|
|
#include <stdbool.h>
|
|
#include <sys/types.h>
|
|
#include <sys/socket.h>
|
|
#include <arpa/inet.h>
|
|
#include <netinet/in.h>
|
|
#include <unistd.h>
|
|
|
|
#define SOCK_BUFF_SIZE 0x1000
|
|
|
|
int start_server(int port, void(*callback)(int fd, void* data, ssize_t data_size)); |