MIP SDK  0.0.1
MicroStrain Communications Library for embedded systems
Classes | Typedefs | Functions
tcp_socket.h File Reference
#include <stdint.h>
#include <stddef.h>
#include <stdbool.h>
Include dependency graph for tcp_socket.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  tcp_socket
 

Typedefs

typedef struct tcp_socket tcp_socket
 

Functions

bool tcp_socket_open (tcp_socket *socket_ptr, const char *hostname, uint16_t port, size_t timeout_ms)
 
bool tcp_socket_close (tcp_socket *socket_ptr)
 
bool tcp_socket_send (tcp_socket *socket_ptr, const void *buffer, size_t num_bytes, size_t *bytes_written)
 
bool tcp_socket_recv (tcp_socket *socket_ptr, void *buffer, size_t num_bytes, size_t *bytes_read)