Rtos API example

Embed: (wiki syntax)

« Back to documentation index

Iperf server

Iperf server
[Applications]

This is a simple performance measuring server to check your bandwith using iPerf2 on a PC as client. More...

Functions

void * lwiperf_start_tcp_server_default (lwiperf_report_fn report_fn, void *report_arg)
 Start a TCP iperf server on the default TCP port (5001) and listen for incoming connections from iperf clients.
void * lwiperf_start_tcp_server (const ip_addr_t *local_addr, u16_t local_port, lwiperf_report_fn report_fn, void *report_arg)
 Start a TCP iperf server on a specific IP address and port and listen for incoming connections from iperf clients.
void lwiperf_abort (void *lwiperf_session)
 Abort an iperf session (handle returned by lwiperf_start_tcp_server*())

Detailed Description

This is a simple performance measuring server to check your bandwith using iPerf2 on a PC as client.

It is currently a minimal implementation providing an IPv4 TCP server only.


Function Documentation

void lwiperf_abort ( void *  lwiperf_session )

Abort an iperf session (handle returned by lwiperf_start_tcp_server*())

Definition at line 642 of file lwip_lwiperf.c.

void* lwiperf_start_tcp_server ( const ip_addr_t local_addr,
u16_t  local_port,
lwiperf_report_fn  report_fn,
void *  report_arg 
)

Start a TCP iperf server on a specific IP address and port and listen for incoming connections from iperf clients.

Returns:
a connection handle that can be used to abort the server by calling lwiperf_abort()

Definition at line 593 of file lwip_lwiperf.c.

void* lwiperf_start_tcp_server_default ( lwiperf_report_fn  report_fn,
void *  report_arg 
)

Start a TCP iperf server on the default TCP port (5001) and listen for incoming connections from iperf clients.

Returns:
a connection handle that can be used to abort the server by calling lwiperf_abort()

Definition at line 578 of file lwip_lwiperf.c.