-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtcp_client.h
42 lines (33 loc) · 1.22 KB
/
tcp_client.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
/*****************************************************************************
** TEXAS INSTRUMENTS PROPRIETARY INFORMATION
**
** (c) Copyright, Texas Instruments Incorporated, 2012-2013.
** All Rights Reserved.
**
** Property of Texas Instruments Incorporated. Restricted Rights -
** Use, duplication, or disclosure is subject to restrictions set
** forth in TI's program license agreement and associated documentation.
******************************************************************************/
/**
*
* @file tcp_client.h
*
* @brief This file contatins functions related to TCP communication. Based on
* on the platform and development environment functions can be implemented.
**/
/*****************************************************************************/
#ifndef TCP_CLIENT_H_
#define TCP_CLIENT_H_
#ifdef __cplusplus
extern "C" {
#endif
#define TRUE 1
#define FALSE 0
int TCP_Connect(char *host, unsigned long int port);
int TCP_Send(int sock, unsigned char *buffer, int length);
int TCP_Receive(int sock, unsigned char *buffer, int length);
int TCP_Disconnect(int sock);
#ifdef __cplusplus
}
#endif
#endif /* TCP_CLIENT_H_ */