diff options
| -rw-r--r-- | src/main.c | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -0,0 +1,12 @@ +#include <stdio.h> +#include <sys/socket.h> + +int main() { + int server = socket(AF_INET, SOCK_STREAM, 0); + if (server == -1) { + perror("could not open socket"); + return 1; + } + printf("hello world\n"); + return 0; +} |
