Skip to content

danielinux/RIOT-OS-posix-tcp-socket-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Posix sockets: TCP client/server example

This example shows how to use TCP with POSIX sockets

License

This example is distributed under the terms of GNU LGPLv2.1.

SOCK vs. Socket

This example is configured to use POSIX sockets (over LWIP).

Fast configuration (Between RIOT instances)

Prepare the bridge interface linking two tuntap

    ./../../dist/tools/tapsetup/tapsetup --create 2

Testing

Run the server

$ make all; PORT=tap1 make term
> ip

copy the server address

> tcps

Run the client

$ PORT=tap0 make term
> tcpc <IPv6's server address[%netif]>

Testing against host endpoints

Riot-to-host can be tested against netcat

Boards

Boards that due to insufficient memory are not able to support LWIP, which is required for this example, are included in the BOARD_INSUFFICIENT_MEMORY.

About

RIOT-OS posix TCP socket example

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published