mirror of
https://github.com/arduino/Arduino.git
synced 2025-02-21 15:54:39 +01:00
27 lines
592 B
C
27 lines
592 B
C
|
/*
|
||
|
* ard_tcp.h
|
||
|
*
|
||
|
* Created on: May 27, 2010
|
||
|
* Author: mlf by Metodo2 srl
|
||
|
*/
|
||
|
|
||
|
#ifndef ARD_TCP_H
|
||
|
#define ARD_TCP_H
|
||
|
|
||
|
#include "console.h"
|
||
|
|
||
|
typedef void (ard_tcp_done_cb_t)(void *opaque, int result);
|
||
|
|
||
|
int ard_tcp_start(struct ip_addr addr, uint16_t port, void *opaque,
|
||
|
ard_tcp_done_cb_t *done_cb, int mode, uint16_t nbuf, uint16_t buflen, int udp, int verbose, uint8_t sock, void** _ttcp);
|
||
|
|
||
|
uint8_t getStateTcp(void* p );
|
||
|
|
||
|
int sendTcpData(void* p, uint8_t* buf, uint16_t len);
|
||
|
|
||
|
uint8_t isDataSent(void* p );
|
||
|
|
||
|
cmd_state_t cmd_ttcp(int argc, char* argv[], void* ctx);
|
||
|
|
||
|
#endif
|