diff options
| author | Amlal El Mahrouss <amlal@nekernel.org> | 2025-12-21 08:03:02 +0100 |
|---|---|---|
| committer | Amlal El Mahrouss <amlal@nekernel.org> | 2025-12-21 08:03:02 +0100 |
| commit | 646d97f28c2891d634e3066535524fa28e297045 (patch) | |
| tree | d8db79bd9f0a6a4fabf1a9327cf847d7a9c02da1 /example/simple_unique_socket/example.cc | |
| parent | fd3a0815365150db49f00f3285e84203e9ae77ea (diff) | |
feat! remove unique_sockets from `core` modules.
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
Diffstat (limited to 'example/simple_unique_socket/example.cc')
| -rw-r--r-- | example/simple_unique_socket/example.cc | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/example/simple_unique_socket/example.cc b/example/simple_unique_socket/example.cc deleted file mode 100644 index 86178e1..0000000 --- a/example/simple_unique_socket/example.cc +++ /dev/null @@ -1,22 +0,0 @@ -#include <ocl/posix/unique_socket.hpp> -#include <ocl/print.hpp> - -/// @brief Basic Send test -int main() -{ - ocl::unique_socket sock = ocl::unique_socket::make_socket<8005>(ocl::unique_socket::any_address, true); - - char buf_dst[512] = {"HELLO, WORLD\0"}; - - ocl::unique_socket sock2 = ocl::unique_socket::make_socket<8005>(ocl::unique_socket::any_address, false); - - char buf_dst2[512] = {0}; - - auto new_sock = sock.accept(); - new_sock.write_from_buffer(buf_dst, strlen(buf_dst)); - sock2.read_client_buffer(buf_dst2, strlen(buf_dst)); - std::cout << "result:" << buf_dst2 << "\n"; - - - return EXIT_SUCCESS; -} |
