libptpmgmt  1.4
libptpmgmt library that provides the functionality of linuxptp pmc
Classes | Typedefs | Enumerations | Functions
sock.h File Reference

C interface to sockets classes. More...

#include "name.h"
#include "c/cfg.h"
#include "c/ptp.h"
Include dependency graph for sock.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  ptpmgmt_sk_t
 

Typedefs

typedef struct ptpmgmt_sk_tptpmgmt_sk
 
typedef const struct ptpmgmt_sk_tconst_ptpmgmt_sk
 

Enumerations

enum  ptpmgmt_socket_class { ptpmgmt_SockUnix , ptpmgmt_SockIp4 , ptpmgmt_SockIp6 , ptpmgmt_SockRaw }
 

Functions

ptpmgmt_sk ptpmgmt_sk_alloc (enum ptpmgmt_socket_class type)
 

Detailed Description

C interface to sockets classes.

Author
Erez Geva <ErezGeva2@gmail.com>

Typedef Documentation

◆ const_ptpmgmt_sk

typedef const struct ptpmgmt_sk_t* const_ptpmgmt_sk

pointer to constant ptpmgmt socket structure

◆ ptpmgmt_sk

typedef struct ptpmgmt_sk_t* ptpmgmt_sk

< pointer to ptpmgmt socket structure

Enumeration Type Documentation

◆ ptpmgmt_socket_class

Enumerator for the available socket classes, we support

Function Documentation

◆ ptpmgmt_sk_alloc()

ptpmgmt_sk ptpmgmt_sk_alloc ( enum ptpmgmt_socket_class  type)

Allocate a new socket structure

Parameters
[in]typeselect which class to use Return pointer to a new ptpmgmt_sk socket structre with new object or null on error