Zephyr API Documentation 4.2.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
netmidi2_ep Struct Reference

A Network MIDI2.0 Endpoint. More...

#include <zephyr/net/midi2.h>

Data Fields

const char * name
 The endpoint name.
const char * piid
 The endpoint product instance id.
union { 
   struct sockaddr   addr 
   struct sockaddr_in   addr4 
   struct sockaddr_in6   addr6 
}; 
 The local endpoint address.
struct zsock_pollfd pollsock
 The listening socket wrapped in a poll descriptor.
void(* rx_packet_cb )(struct netmidi2_session *session, const struct midi_ump ump)
 The function to call when data is received from a client.
struct netmidi2_session peers [CONFIG_NETMIDI2_HOST_MAX_CLIENTS]
 List of peers to this endpoint.
enum netmidi2_auth_type auth_type
 The type of authentication required to establish a session with this host endpoint.
union { 
   const char *   shared_auth_secret 
 A shared authentication key. More...
   const struct netmidi2_userlist *   userlist 
 A list of users/passwords. More...
}; 

Detailed Description

A Network MIDI2.0 Endpoint.

Field Documentation

◆ [union]

union { ... } netmidi2_ep

◆ [union]

union { ... } netmidi2_ep

The local endpoint address.

◆ addr

struct sockaddr netmidi2_ep::addr

◆ addr4

struct sockaddr_in netmidi2_ep::addr4

◆ addr6

struct sockaddr_in6 netmidi2_ep::addr6

◆ auth_type

enum netmidi2_auth_type netmidi2_ep::auth_type

The type of authentication required to establish a session with this host endpoint.

◆ name

const char* netmidi2_ep::name

The endpoint name.

◆ peers

struct netmidi2_session netmidi2_ep::peers[CONFIG_NETMIDI2_HOST_MAX_CLIENTS]

List of peers to this endpoint.

◆ piid

const char* netmidi2_ep::piid

The endpoint product instance id.

◆ pollsock

struct zsock_pollfd netmidi2_ep::pollsock

The listening socket wrapped in a poll descriptor.

◆ rx_packet_cb

void(* netmidi2_ep::rx_packet_cb) (struct netmidi2_session *session, const struct midi_ump ump)

The function to call when data is received from a client.

◆ shared_auth_secret

const char* netmidi2_ep::shared_auth_secret

A shared authentication key.

◆ userlist

const struct netmidi2_userlist* netmidi2_ep::userlist

A list of users/passwords.


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