2018-02-17 11:42:41 +07:00
|
|
|
/*
|
|
|
|
|
* This file is subject to the terms and conditions defined in
|
|
|
|
|
* file 'LICENSE', which is part of this source code package.
|
|
|
|
|
* Tuan PM <tuanpm at live dot com>
|
|
|
|
|
*/
|
2018-02-16 02:40:16 +07:00
|
|
|
#ifndef _TRANSPORT_TCP_H_
|
|
|
|
|
#define _TRANSPORT_TCP_H_
|
|
|
|
|
|
|
|
|
|
#include "transport.h"
|
|
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
|
extern "C" {
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
/**
|
2018-05-03 21:50:24 +07:00
|
|
|
* @brief Create TCP transport, the transport handle must be release transport_destroy callback
|
2018-02-16 02:40:16 +07:00
|
|
|
*
|
2018-05-03 21:50:24 +07:00
|
|
|
* @return the allocated transport_handle_t, or NULL if the handle can not be allocated
|
2018-02-16 02:40:16 +07:00
|
|
|
*/
|
|
|
|
|
transport_handle_t transport_tcp_init();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
|
}
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
#endif
|