snoopy/include/network.h

10 lines
319 B
C
Raw Normal View History

2023-02-20 21:55:24 +01:00
#pragma once
// file descriptor of the socket we're listening for connections on
//
// returns fd for the client connection
int accept_client(int sockfd);
int wait_for_client(int& sockfd);
void send_message(int sock, const char* message);
void send_image_dimensions(int sock, unsigned int width, unsigned int height);