#include <async_comm/tcp_client.h>
#include <cstdint>
#include <cstring>
#include <iostream>
#include <chrono>
#include <thread>
#include <vector>
Go to the source code of this file.
Functions | |
void | callback (const uint8_t *buf, size_t len) |
Callback function for the async_comm library. More... | |
int | main () |
This example opens a TCP client that sends "hello world" messages.
Definition in file tcp_client_hello_world.cpp.
void callback | ( | const uint8_t * | buf, |
size_t | len | ||
) |
Callback function for the async_comm library.
Prints the received bytes to stdout.
buf | Received bytes buffer |
len | Number of bytes received |
Definition at line 59 of file tcp_client_hello_world.cpp.
int main | ( | ) |
Definition at line 68 of file tcp_client_hello_world.cpp.