Commit a93d45cf authored by Sandrine Avakian's avatar Sandrine Avakian

Deleting functions now defined in bctoolbox socket api vconnect.c and vconnect.h

parent d825ec40
......@@ -351,7 +351,6 @@ void bctbx_set_memory_functions(BctoolboxMemoryFunctions *functions);
#define bctbx_new(type,count) (type*)bctbx_malloc(sizeof(type)*(count))
#define bctbx_new0(type,count) (type*)bctbx_malloc0(sizeof(type)*(count))
// BCTBX_PUBLIC int bctbx_socket_close(bctbx_socket_t sock);
BCTBX_PUBLIC int bctbx_socket_set_non_blocking(bctbx_socket_t sock);
BCTBX_PUBLIC char *bctbx_strndup(const char *str,int n);
......@@ -416,8 +415,6 @@ BCTBX_PUBLIC uint32_t bctbx_time_string_to_sec(const char *timeString);
BCTBX_PUBLIC unsigned int bctbx_random(void);
// BCTBX_PUBLIC int bctbx_bind(bctbx_socket_t socket, const struct sockaddr *address, socklen_t address_len);
// BCTBX_PUBLIC int bctbx_connect(bctbx_socket_t socket, const struct sockaddr *address, socklen_t address_len);
BCTBX_PUBLIC ssize_t bctbx_send(bctbx_socket_t socket, const void *buffer, size_t length, int flags);
BCTBX_PUBLIC ssize_t bctbx_sendto(bctbx_socket_t socket, const void *message, size_t length, int flags, const struct sockaddr *dest_addr, socklen_t dest_len);
BCTBX_PUBLIC ssize_t bctbx_recv(bctbx_socket_t socket, void *buffer, size_t length, int flags);
......
......@@ -122,18 +122,6 @@ int bctbx_socket_set_non_blocking(bctbx_socket_t sock){
}
/*
* this method is an utility method that calls close() on UNIX or
* closesocket on Win32.
* int retrun the result of the system method
*/
// int bctbx_socket_close(bctbx_socket_t sock){
// #if !defined(_WIN32) && !defined(_WIN32_WCE)
// return close (sock);
// #else
// return closesocket(sock);
// #endif
// }
int bctbx_file_exist(const char *pathname) {
return access(pathname,F_OK);
......@@ -1000,13 +988,6 @@ bool_t bctbx_is_multicast_addr(const struct sockaddr *addr) {
#ifdef _WIN32
// int bctbx_bind(bctbx_socket_t socket, const struct sockaddr *address, socklen_t address_len) {
// return bind(socket, address, (int)address_len);
// }
// int bctbx_connect(bctbx_socket_t socket, const struct sockaddr *address, socklen_t address_len) {
// return connect(socket, address, (int)address_len);
// }
ssize_t bctbx_send(bctbx_socket_t socket, const void *buffer, size_t length, int flags) {
return send(socket, (const char *)buffer, (int)length, flags);
......@@ -1034,14 +1015,6 @@ ssize_t bctbx_write(int fd, const void *buf, size_t nbytes) {
#else
// int bctbx_bind(bctbx_socket_t socket, const struct sockaddr *address, socklen_t address_len) {
// return bind(socket, address, address_len);
// }
// int bctbx_connect(bctbx_socket_t socket, const struct sockaddr *address, socklen_t address_len) {
// return connect(socket, address, address_len);
// }
ssize_t bctbx_send(bctbx_socket_t socket, const void *buffer, size_t length, int flags) {
return send(socket, buffer, length, flags);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment