upump-srt/upump_srt.h header reference
declarations for a Upipe event loop using libsrt More
Header inclusion [link]
Members [link]
Type [link]
- enum upump_srt_type
Functions [link]
- struct upump * upump_srt_alloc_read(struct upump_mgr *mgr, upump_cb cb, void *opaque, struct urefcount *refcount, SRTSOCKET socket)
- struct upump * upump_srt_alloc_write(struct upump_mgr *mgr, upump_cb cb, void *opaque, struct urefcount *refcount, SRTSOCKET socket)
- struct upump_mgr * upump_srt_mgr_alloc(uint16_t upump_pool_depth, uint16_t upump_blocker_pool_depth)
Description [link]
declarations for a Upipe event loop using libsrt
Members detail [link]
#define UPUMP_SRT_SIGNATURE [link]
This macro is declared in upump-srt/upump_srt.h source file, line 41.
#define _UPUMP_SRT_UPUMP_SRT_H_ [link]
This macro is declared in upump-srt/upump_srt.h source file, line 31.
struct upump * upump_srt_alloc_read(struct upump_mgr *mgr, upump_cb cb, void *opaque, struct urefcount *refcount, SRTSOCKET socket) [link]
This function is declared in upump-srt/upump_srt.h source file, line 78.
This function allocates and initializes a pump for a readable srt socket.
Parameter list:
- mgr: management structure for this event loop
- cb: function to call when the pump triggers
- opaque: pointer to the module's internal structure
- refcount: pointer to urefcount structure to increment during callback, or NULL
- socket: srt socket to watch
The return value is pointer to allocated pump, or NULL in case of failure
struct upump * upump_srt_alloc_write(struct upump_mgr *mgr, upump_cb cb, void *opaque, struct urefcount *refcount, SRTSOCKET socket) [link]
This function is declared in upump-srt/upump_srt.h source file, line 97.
This function allocates and initializes a pump for a writable srt socket.
Parameter list:
- mgr: management structure for this event loop
- cb: function to call when the pump triggers
- opaque: pointer to the module's internal structure
- refcount: pointer to urefcount structure to increment during callback, or NULL
- socket: srt socket to watch
The return value is pointer to allocated pump, or NULL in case of failure
struct upump_mgr * upump_srt_mgr_alloc(uint16_t upump_pool_depth, uint16_t upump_blocker_pool_depth) [link]
This function is declared in upump-srt/upump_srt.h source file, line 62.
This function allocates and initializes a upump_mgr structure.
Parameter list:
- upump_pool_depth: maximum number of upump structures in the pool
- upump_blocker_pool_depth: maximum number of upump_blocker structures in the pool
The return value is pointer to the wrapped upump_mgr structure
enum upump_srt_type [link]
This enum is declared in upump-srt/upump_srt.h source file, line 45.
This enum extends upump_type with specific commands for upump_srt.
| Identifier | Value | Description |
|---|---|---|
| UPUMP_SRT_TYPE_SENTINEL | 0x8000 | |
| UPUMP_SRT_TYPE_READ | 1 | event triggers on readable srt socket (int) |
| UPUMP_SRT_TYPE_WRITE | 2 | event triggers on writable srt socket (int) |