2017-11-15 13:59:30 +00:00
|
|
|
#ifndef __CORE_TCP_H__
|
|
|
|
#define __CORE_TCP_H__
|
|
|
|
|
|
|
|
#include "core_sock.h"
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif /* __cplusplus */
|
|
|
|
|
2017-11-16 01:51:05 +00:00
|
|
|
CORE_DECLARE(status_t) tcp_open(sock_id *new,
|
2017-11-15 13:59:30 +00:00
|
|
|
int family,
|
|
|
|
const char *local_host, c_uint16_t local_port,
|
|
|
|
const char *remote_host, c_uint16_t remote_port,
|
|
|
|
int flags);
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif /* __cplusplus */
|
|
|
|
|
|
|
|
#endif
|