Mayank Gupta / Mbed OS pelion-example-frdm

Dependencies:   FXAS21002 FXOS8700Q

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers pal_socket_test_address.h Source File

pal_socket_test_address.h

00001 /*******************************************************************************
00002  * Copyright 2016, 2017 ARM Ltd.
00003  *
00004  * Licensed under the Apache License, Version 2.0 (the "License");
00005  * you may not use this file except in compliance with the License.
00006  * You may obtain a copy of the License at
00007  *
00008  *     http://www.apache.org/licenses/LICENSE-2.0
00009  *
00010  * Unless required by applicable law or agreed to in writing, software
00011  * distributed under the License is distributed on an "AS IS" BASIS,
00012  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00013  * See the License for the specific language governing permissions and
00014  * limitations under the License.
00015  *******************************************************************************/
00016 #ifndef __PAL_SOCKET_TEST_ADDRESS_H__
00017 #define __PAL_SOCKET_TEST_ADDRESS_H__
00018 
00019 // test server contact details, typically overridden on CI and/or local development setup
00020 
00021 // address of a server which is running the KeepAliveServer/KeepAliveServer.py
00022 #ifndef PAL_TEST_KEEPALIVE_SERVER_ADDRESS
00023 #define PAL_TEST_KEEPALIVE_SERVER_ADDRESS "127.0.0.1"
00024 #endif
00025 
00026 // listening port of the server
00027 #ifndef PAL_TEST_SERVER_KEEPALIVE_PORT
00028 #define PAL_TEST_SERVER_KEEPALIVE_PORT 5533
00029 #endif
00030 
00031 // magic number of keepalive messages (or TCP ACKs..) which serves as pivot on deciding if
00032 // the keepalive did work or not.
00033 #ifndef PAL_TEST_KEEPALIVE_NUM_OF_ACK
00034 #define PAL_TEST_KEEPALIVE_NUM_OF_ACK 4
00035 #endif
00036 
00037 #endif // !__PAL_SOCKET_TEST_ADDRESS_H__