Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
mtb-example-cyw43907-secure-tcp-server/secure_tcp_server.h
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
30 lines (25 sloc)
1.14 KB
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/****************************************************************************** | |
* File Name: secure_tcp_server.h | |
* | |
* Description: This file contains declaration of task and functions related to | |
* secure TCP server operation. | |
* | |
******************************************************************************* | |
* $ Copyright 2021-2023 Cypress Semiconductor $ | |
*******************************************************************************/ | |
#ifndef SECURE_TCP_SERVER_H_ | |
#define SECURE_TCP_SERVER_H_ | |
/* Set this macro to '1' to enable IPv6 protocol. Default value is '0' to use | |
* IPv4 protocol. | |
*/ | |
#define USE_IPV6_ADDRESS (0) | |
/* TCP server related macros. */ | |
#define TCP_SERVER_PORT (50007) | |
#define TCP_SERVER_MAX_PENDING_CONNECTIONS (3) | |
#define TCP_SERVER_RECV_TIMEOUT_MS (2000) | |
#define MAX_TCP_RECV_BUFFER_SIZE (20) | |
/******************************************************************************* | |
* Function Prototype | |
********************************************************************************/ | |
void tcp_secure_server_task(void *arg); | |
#endif /* SECURE_TCP_SERVER_H_ */ |