Functions
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.

Functions

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

Detailed Description

Author
Rein Appeldoorn reinz.nosp@m.or@g.nosp@m.mail..nosp@m.com

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

Definition in file tcp_client_hello_world.cpp.

Function Documentation

void callback ( const uint8_t *  buf,
size_t  len 
)

Callback function for the async_comm library.

Prints the received bytes to stdout.

Parameters
bufReceived bytes buffer
lenNumber 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.



async_comm
Author(s):
autogenerated on Thu May 16 2019 03:03:47