diff options
author | sss <sss@dark-alexandr.net> | 2023-01-17 00:38:19 +0300 |
---|---|---|
committer | sss <sss@dark-alexandr.net> | 2023-01-17 00:38:19 +0300 |
commit | cc3f33db7a8d3c4ad373e646b199808e01bc5d9b (patch) | |
tree | ec09d690c7656ab5f2cc72607e05fb359c24d8b2 /src/core/socket_helpers.h |
added webrdp public code
Diffstat (limited to 'src/core/socket_helpers.h')
-rw-r--r-- | src/core/socket_helpers.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/core/socket_helpers.h b/src/core/socket_helpers.h new file mode 100644 index 0000000..7eb04de --- /dev/null +++ b/src/core/socket_helpers.h @@ -0,0 +1,12 @@ +/* BSD-2-Clause license + * + * Copyright (c) 2018-2023 NST <www.newinfosec.ru>, sss <sss at dark-alexandr dot net>. + * + */ + +#pragma once + +void socket_make_non_block(int sock); +int create_listen_socket_tcp(uint32_t port); +int create_listen_socket_unix(const char *path); +int accept_new_connection(int socket); |