comparison seobeo/src/server.c @ 0:5695ef413be0

Initialized mono repo with bazels with few examples.
author June Park <parkjune1995@gmail.com>
date Tue, 23 Sep 2025 10:05:25 -0700
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:5695ef413be0
1 void CreateSocket(int *server_fd)
2 {
3 *server_fd = socket(PF_INET, SOCK_STREAM, 0);
4 if (*server_fd == -1)
5 {
6 perror("socket failed");
7 exit(EXIT_FAILURE);
8 }
9 }