Barrelfish
Functions
server.c File Reference

TFTP library. More...

Functions

errval_t tftp_server_accept (char *ip, uint16_t port, tfpt_server_cb_f_t cb)
 starts the tftp server on this machine on a given port More...
 
errval_t tftp_server_terminate (void)
 terminates the tftp server connection More...
 

Detailed Description

TFTP library.

Function Documentation

errval_t tftp_server_accept ( char *  ip,
uint16_t  port,
tfpt_server_cb_f_t  cb 
)

starts the tftp server on this machine on a given port

Parameters
ipip address to be used
portport to be used
cbcallback function called when clients connect
Returns
SYS_ERR_OK on success TFTP_ERR_* on failure
errval_t tftp_server_terminate ( void  )

terminates the tftp server connection

Returns
SYS_ERR_OK on success TFTP_ERR_* on failure