mirror of https://github.com/jeelabs/esp-link.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
474 B
20 lines
474 B
/*
|
|
* tcp.h
|
|
*
|
|
* Created on: Sep 2nd 2016
|
|
* Author: BeeGee
|
|
*/
|
|
|
|
#ifndef MODULES_TCP_H_
|
|
#define MODULES_TCP_H_
|
|
|
|
#include "cmd.h"
|
|
|
|
void TCP_Setup(CmdPacket *cmd);
|
|
void TCP_Send(CmdPacket *cmd);
|
|
|
|
#define SOCKET_CLIENT 0 // TCP socket client for sending only, doesn't wait for response from server
|
|
#define SOCKET_CLIENT_LISTEN 1 // TCP socket client, waits for response from server after sending
|
|
#define SOCKET_SERVER 2 // TCP socket server
|
|
|
|
#endif /* MODULES_TCP_H_ */
|
|
|