Async Comm
A library for asynchronous serial communication
tcp_client_hello_world.cpp File Reference
#include <async_comm/tcp_client.h>
#include <cstdint>
#include <cstring>
#include <iostream>
#include <chrono>
#include <thread>
#include <vector>
Include dependency graph for tcp_client_hello_world.cpp:

Go to the source code of this file.


void callback (const uint8_t *buf, size_t len)
 Callback function for the async_comm library. More...
int main ()

Detailed Description

Rein Appeldoorn

This example opens a TCP client that sends "hello world" messages.

Definition in file tcp_client_hello_world.cpp.

Function Documentation

◆ callback()

void callback ( const uint8_t *  buf,
size_t  len 

Callback function for the async_comm library.

Prints the received bytes to stdout.

bufReceived bytes buffer
lenNumber of bytes received

Definition at line 59 of file tcp_client_hello_world.cpp.