Soletta™ Framework
Framework for making IoT devices

Full online documentation | C API Index
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Fields
sol_socket_ip_options Struct Reference

Defines specific IP layer related behaviour of a socket instance. More...

#include <sol-socket.h>

Data Fields

struct sol_socket_options base
 
enum sol_socket_dtls_ciphercipher_suites
 If secure is true, this should be considered. More...
 
uint16_t cipher_suites_len
 If secure is true, this should be considered. More...
 
enum sol_network_family family
 The family that should be used when creating the socket. More...
 
bool reuse_addr
 Allow reuse of local addresses. More...
 
bool reuse_port
 Allows multiple sockets to be bound to the same socket address. More...
 
bool secure
 If the socket's data should be encrypted or not. More...
 

Detailed Description

Defines specific IP layer related behaviour of a socket instance.

Examples:
/src/samples/network/echo-client.c, and /src/samples/network/echo-server.c.

Field Documentation

struct sol_socket_options sol_socket_ip_options::base
enum sol_socket_dtls_cipher* sol_socket_ip_options::cipher_suites

If secure is true, this should be considered.

It indicates which DTLS cipher suites are supported and could be used for communication.

uint16_t sol_socket_ip_options::cipher_suites_len

If secure is true, this should be considered.

It indicates the length of the cipher_suites array.

enum sol_network_family sol_socket_ip_options::family

The family that should be used when creating the socket.

See Also
sol_network_family
Examples:
/src/samples/network/echo-client.c, and /src/samples/network/echo-server.c.
bool sol_socket_ip_options::reuse_addr

Allow reuse of local addresses.

It is used by sol_socket_bind()

Examples:
/src/samples/network/echo-client.c, and /src/samples/network/echo-server.c.
bool sol_socket_ip_options::reuse_port

Allows multiple sockets to be bound to the same socket address.

It is used by sol_socket_bind()

bool sol_socket_ip_options::secure

If the socket's data should be encrypted or not.

Examples:
/src/samples/network/echo-client.c, and /src/samples/network/echo-server.c.

The documentation for this struct was generated from the following file: