Package io.sisu.nng.internal
Class NngDirectLibrary
- java.lang.Object
-
- io.sisu.nng.internal.NngDirectLibrary
-
- All Implemented Interfaces:
com.sun.jna.Library
,NngLibrary
public class NngDirectLibrary extends java.lang.Object implements NngLibrary
-
-
Constructor Summary
Constructors Constructor Description NngDirectLibrary()
-
Method Summary
-
-
-
Method Detail
-
nng_strerror
public java.lang.String nng_strerror(int err)
- Specified by:
nng_strerror
in interfaceNngLibrary
-
nng_version
public java.lang.String nng_version()
- Specified by:
nng_version
in interfaceNngLibrary
-
nng_close
public int nng_close(SocketStruct.ByValue socket)
- Specified by:
nng_close
in interfaceNngLibrary
-
nng_dial
public int nng_dial(SocketStruct.ByValue socket, java.lang.String url, com.sun.jna.Pointer dialer, int flags)
- Specified by:
nng_dial
in interfaceNngLibrary
-
nng_listen
public int nng_listen(SocketStruct.ByValue socket, java.lang.String url, com.sun.jna.Pointer listener, int flags)
- Specified by:
nng_listen
in interfaceNngLibrary
-
nng_recv
public int nng_recv(SocketStruct.ByValue socket, java.nio.ByteBuffer data, SizeByReference size, int flags)
- Specified by:
nng_recv
in interfaceNngLibrary
-
nng_send
public int nng_send(SocketStruct.ByValue socket, java.nio.ByteBuffer data, Size size, int flags)
- Specified by:
nng_send
in interfaceNngLibrary
-
nng_socket_get
public int nng_socket_get(SocketStruct.ByValue s, java.lang.String opt, com.sun.jna.Pointer val, SizeByReference size)
- Specified by:
nng_socket_get
in interfaceNngLibrary
-
nng_socket_get_bool
public int nng_socket_get_bool(SocketStruct.ByValue s, java.lang.String opt, com.sun.jna.ptr.IntByReference bool)
- Specified by:
nng_socket_get_bool
in interfaceNngLibrary
-
nng_socket_get_int
public int nng_socket_get_int(SocketStruct.ByValue s, java.lang.String opt, com.sun.jna.ptr.IntByReference intRef)
- Specified by:
nng_socket_get_int
in interfaceNngLibrary
-
nng_socket_get_size
public int nng_socket_get_size(SocketStruct.ByValue s, java.lang.String opt, SizeByReference size)
- Specified by:
nng_socket_get_size
in interfaceNngLibrary
-
nng_socket_get_uint64
public int nng_socket_get_uint64(SocketStruct.ByValue s, java.lang.String opt, UInt64ByReference uint64)
- Specified by:
nng_socket_get_uint64
in interfaceNngLibrary
-
nng_socket_get_string
public int nng_socket_get_string(SocketStruct.ByValue s, java.lang.String opt, com.sun.jna.Pointer strings)
- Specified by:
nng_socket_get_string
in interfaceNngLibrary
-
nng_socket_get_ptr
public int nng_socket_get_ptr(SocketStruct.ByValue s, java.lang.String opt, com.sun.jna.Pointer pointer)
- Specified by:
nng_socket_get_ptr
in interfaceNngLibrary
-
nng_socket_get_ms
public int nng_socket_get_ms(SocketStruct.ByValue s, java.lang.String opt, com.sun.jna.ptr.IntByReference duration)
- Specified by:
nng_socket_get_ms
in interfaceNngLibrary
-
nng_socket_get_addr
public int nng_socket_get_addr(SocketStruct.ByValue s, java.lang.String opt, SockAddr addr)
- Specified by:
nng_socket_get_addr
in interfaceNngLibrary
-
nng_socket_set
public int nng_socket_set(SocketStruct.ByValue s, java.lang.String opt, com.sun.jna.Pointer val, Size size)
- Specified by:
nng_socket_set
in interfaceNngLibrary
-
nng_socket_set_bool
public int nng_socket_set_bool(SocketStruct.ByValue s, java.lang.String opt, boolean bool)
- Specified by:
nng_socket_set_bool
in interfaceNngLibrary
-
nng_socket_set_int
public int nng_socket_set_int(SocketStruct.ByValue s, java.lang.String opt, int intRef)
- Specified by:
nng_socket_set_int
in interfaceNngLibrary
-
nng_socket_set_size
public int nng_socket_set_size(SocketStruct.ByValue s, java.lang.String opt, Size size)
- Specified by:
nng_socket_set_size
in interfaceNngLibrary
-
nng_socket_set_uint64
public int nng_socket_set_uint64(SocketStruct.ByValue s, java.lang.String opt, UInt64 uint64)
- Specified by:
nng_socket_set_uint64
in interfaceNngLibrary
-
nng_socket_set_string
public int nng_socket_set_string(SocketStruct.ByValue s, java.lang.String opt, java.lang.String string)
- Specified by:
nng_socket_set_string
in interfaceNngLibrary
-
nng_socket_set_ptr
public int nng_socket_set_ptr(SocketStruct.ByValue s, java.lang.String opt, com.sun.jna.Pointer pointer)
- Specified by:
nng_socket_set_ptr
in interfaceNngLibrary
-
nng_socket_set_ms
public int nng_socket_set_ms(SocketStruct.ByValue s, java.lang.String opt, int duration)
- Specified by:
nng_socket_set_ms
in interfaceNngLibrary
-
nng_socket_id
public int nng_socket_id(SocketStruct.ByValue socket)
- Specified by:
nng_socket_id
in interfaceNngLibrary
-
nng_dialer_close
public int nng_dialer_close(DialerStruct.ByValue dialer)
- Specified by:
nng_dialer_close
in interfaceNngLibrary
-
nng_dialer_create
public int nng_dialer_create(DialerStruct dialer, SocketStruct.ByValue socket, java.lang.String url)
- Specified by:
nng_dialer_create
in interfaceNngLibrary
-
nng_dialer_id
public int nng_dialer_id(DialerStruct.ByValue dialer)
- Specified by:
nng_dialer_id
in interfaceNngLibrary
-
nng_dialer_start
public int nng_dialer_start(DialerStruct.ByValue dialer, int flags)
- Specified by:
nng_dialer_start
in interfaceNngLibrary
-
nng_listener_close
public int nng_listener_close(ListenerStruct.ByValue listener)
- Specified by:
nng_listener_close
in interfaceNngLibrary
-
nng_listener_create
public int nng_listener_create(ListenerStruct listener, SocketStruct.ByValue socket, java.lang.String url)
- Specified by:
nng_listener_create
in interfaceNngLibrary
-
nng_listener_id
public int nng_listener_id(ListenerStruct.ByValue listener)
- Specified by:
nng_listener_id
in interfaceNngLibrary
-
nng_listener_start
public int nng_listener_start(ListenerStruct.ByValue listener, int flags)
- Specified by:
nng_listener_start
in interfaceNngLibrary
-
nng_pipe_close
public int nng_pipe_close(PipeStruct.ByValue pipe)
- Specified by:
nng_pipe_close
in interfaceNngLibrary
-
nng_pipe_dialer
public DialerStruct.ByValue nng_pipe_dialer(PipeStruct.ByValue pipe)
- Specified by:
nng_pipe_dialer
in interfaceNngLibrary
-
nng_pipe_id
public PipeStruct.ByValue nng_pipe_id(PipeStruct.ByValue pipe)
- Specified by:
nng_pipe_id
in interfaceNngLibrary
-
nng_pipe_listener
public ListenerStruct.ByValue nng_pipe_listener(PipeStruct.ByValue pipe)
- Specified by:
nng_pipe_listener
in interfaceNngLibrary
-
nng_pipe_notify
public int nng_pipe_notify(SocketStruct.ByValue socket, int pipeEvent, NngCallback cb, com.sun.jna.Pointer arg)
- Specified by:
nng_pipe_notify
in interfaceNngLibrary
-
nng_pipe_socket
public SocketStruct.ByValue nng_pipe_socket(PipeStruct.ByValue pipe)
- Specified by:
nng_pipe_socket
in interfaceNngLibrary
-
nng_pipe_get
public int nng_pipe_get(PipeStruct.ByValue pipe, java.lang.String opt, com.sun.jna.Pointer value, SizeByReference size)
- Specified by:
nng_pipe_get
in interfaceNngLibrary
-
nng_pipe_get_int
public int nng_pipe_get_int(PipeStruct.ByValue pipe, java.lang.String opt, com.sun.jna.ptr.IntByReference value)
- Specified by:
nng_pipe_get_int
in interfaceNngLibrary
-
nng_pipe_get_ms
public int nng_pipe_get_ms(PipeStruct.ByValue pipe, java.lang.String opt, com.sun.jna.ptr.IntByReference duration)
- Specified by:
nng_pipe_get_ms
in interfaceNngLibrary
-
nng_pipe_get_ptr
public int nng_pipe_get_ptr(PipeStruct.ByValue pipe, java.lang.String opt, com.sun.jna.ptr.PointerByReference ref)
- Specified by:
nng_pipe_get_ptr
in interfaceNngLibrary
-
nng_pipe_get_addr
public int nng_pipe_get_addr(PipeStruct.ByValue pipe, java.lang.String opt, SockAddr addr)
- Specified by:
nng_pipe_get_addr
in interfaceNngLibrary
-
nng_pipe_get_string
public int nng_pipe_get_string(PipeStruct.ByValue pipe, java.lang.String opt, com.sun.jna.Pointer ref)
- Specified by:
nng_pipe_get_string
in interfaceNngLibrary
-
nng_pipe_get_size
public int nng_pipe_get_size(PipeStruct.ByValue pipe, java.lang.String opt, SizeByReference size)
- Specified by:
nng_pipe_get_size
in interfaceNngLibrary
-
nng_pipe_get_uint64
public int nng_pipe_get_uint64(PipeStruct.ByValue pipe, java.lang.String opt, UInt64 ref)
- Specified by:
nng_pipe_get_uint64
in interfaceNngLibrary
-
nng_msg_alloc
public int nng_msg_alloc(MessageByReference msgRef, Size size)
- Specified by:
nng_msg_alloc
in interfaceNngLibrary
-
nng_msg_append
public int nng_msg_append(MessagePointer msg, com.sun.jna.Pointer buf, Size size)
- Specified by:
nng_msg_append
in interfaceNngLibrary
-
nng_msg_append
public int nng_msg_append(MessagePointer msg, java.nio.Buffer buf, Size size)
- Specified by:
nng_msg_append
in interfaceNngLibrary
-
nng_msg_append
public int nng_msg_append(MessagePointer msg, byte[] buf, int size)
- Specified by:
nng_msg_append
in interfaceNngLibrary
-
nng_msg_append_u16
public int nng_msg_append_u16(MessagePointer msg, UInt16 val)
- Specified by:
nng_msg_append_u16
in interfaceNngLibrary
-
nng_msg_append_u32
public int nng_msg_append_u32(MessagePointer msg, UInt32 val)
- Specified by:
nng_msg_append_u32
in interfaceNngLibrary
-
nng_msg_append_u64
public int nng_msg_append_u64(MessagePointer msg, UInt64 val)
- Specified by:
nng_msg_append_u64
in interfaceNngLibrary
-
nng_msg_body
public BodyPointer nng_msg_body(MessagePointer msg)
- Specified by:
nng_msg_body
in interfaceNngLibrary
-
nng_msg_chop
public int nng_msg_chop(MessagePointer msg, Size size)
- Specified by:
nng_msg_chop
in interfaceNngLibrary
-
nng_msg_chop_u16
public int nng_msg_chop_u16(MessagePointer msg, UInt16 size)
- Specified by:
nng_msg_chop_u16
in interfaceNngLibrary
-
nng_msg_chop_u32
public int nng_msg_chop_u32(MessagePointer msg, UInt32 size)
- Specified by:
nng_msg_chop_u32
in interfaceNngLibrary
-
nng_msg_chop_u64
public int nng_msg_chop_u64(MessagePointer msg, UInt64 size)
- Specified by:
nng_msg_chop_u64
in interfaceNngLibrary
-
nng_msg_clear
public void nng_msg_clear(MessagePointer msg)
- Specified by:
nng_msg_clear
in interfaceNngLibrary
-
nng_msg_dup
public int nng_msg_dup(MessageByReference dup, MessagePointer orig)
- Specified by:
nng_msg_dup
in interfaceNngLibrary
-
nng_msg_free
public void nng_msg_free(MessagePointer msg)
- Specified by:
nng_msg_free
in interfaceNngLibrary
-
nng_msg_get_pipe
public PipeStruct.ByValue nng_msg_get_pipe(MessagePointer msg)
- Specified by:
nng_msg_get_pipe
in interfaceNngLibrary
-
nng_msg_insert
public int nng_msg_insert(MessagePointer msg, java.nio.ByteBuffer buf, Size size)
- Specified by:
nng_msg_insert
in interfaceNngLibrary
-
nng_msg_insert_u16
public int nng_msg_insert_u16(MessagePointer msg, UInt16 size)
- Specified by:
nng_msg_insert_u16
in interfaceNngLibrary
-
nng_msg_insert_u32
public int nng_msg_insert_u32(MessagePointer msg, UInt32 size)
- Specified by:
nng_msg_insert_u32
in interfaceNngLibrary
-
nng_msg_insert_u64
public int nng_msg_insert_u64(MessagePointer msg, UInt64 size)
- Specified by:
nng_msg_insert_u64
in interfaceNngLibrary
-
nng_msg_len
public int nng_msg_len(MessagePointer msg)
- Specified by:
nng_msg_len
in interfaceNngLibrary
-
nng_msg_realloc
public int nng_msg_realloc(MessagePointer msg, Size size)
- Specified by:
nng_msg_realloc
in interfaceNngLibrary
-
nng_msg_set_pipe
public int nng_msg_set_pipe(MessagePointer msg, PipeStruct.ByValue pipe)
- Specified by:
nng_msg_set_pipe
in interfaceNngLibrary
-
nng_msg_trim
public int nng_msg_trim(MessagePointer msg, Size size)
- Specified by:
nng_msg_trim
in interfaceNngLibrary
-
nng_msg_trim_u16
public int nng_msg_trim_u16(MessagePointer msg, UInt16ByReference size)
- Specified by:
nng_msg_trim_u16
in interfaceNngLibrary
-
nng_msg_trim_u32
public int nng_msg_trim_u32(MessagePointer msg, UInt32ByReference size)
- Specified by:
nng_msg_trim_u32
in interfaceNngLibrary
-
nng_msg_trim_u64
public int nng_msg_trim_u64(MessagePointer msg, UInt64ByReference size)
- Specified by:
nng_msg_trim_u64
in interfaceNngLibrary
-
nng_recvmsg
public int nng_recvmsg(SocketStruct.ByValue socket, MessageByReference msg, int flags)
- Specified by:
nng_recvmsg
in interfaceNngLibrary
-
nng_sendmsg
public int nng_sendmsg(SocketStruct.ByValue socket, MessagePointer msg, int flags)
- Specified by:
nng_sendmsg
in interfaceNngLibrary
-
nng_msg_header
public HeaderPointer nng_msg_header(MessagePointer msg)
- Specified by:
nng_msg_header
in interfaceNngLibrary
-
nng_msg_header_append
public int nng_msg_header_append(MessagePointer msg, java.nio.ByteBuffer buf, Size size)
- Specified by:
nng_msg_header_append
in interfaceNngLibrary
-
nng_msg_header_chop
public int nng_msg_header_chop(MessagePointer msg, Size size)
- Specified by:
nng_msg_header_chop
in interfaceNngLibrary
-
nng_msg_header_chop_u16
public int nng_msg_header_chop_u16(MessagePointer msg, UInt16 size)
- Specified by:
nng_msg_header_chop_u16
in interfaceNngLibrary
-
nng_msg_header_chop_u32
public int nng_msg_header_chop_u32(MessagePointer msg, UInt32 size)
- Specified by:
nng_msg_header_chop_u32
in interfaceNngLibrary
-
nng_msg_header_chop_u64
public int nng_msg_header_chop_u64(MessagePointer msg, UInt64 size)
- Specified by:
nng_msg_header_chop_u64
in interfaceNngLibrary
-
nng_msg_header_clear
public void nng_msg_header_clear(MessagePointer msg)
- Specified by:
nng_msg_header_clear
in interfaceNngLibrary
-
nng_msg_header_insert
public int nng_msg_header_insert(MessagePointer msg, java.nio.ByteBuffer buf, Size size)
- Specified by:
nng_msg_header_insert
in interfaceNngLibrary
-
nng_msg_header_len
public int nng_msg_header_len(MessagePointer msg)
- Specified by:
nng_msg_header_len
in interfaceNngLibrary
-
nng_msg_header_trim
public int nng_msg_header_trim(MessagePointer msg, Size size)
- Specified by:
nng_msg_header_trim
in interfaceNngLibrary
-
nng_msg_header_trim_u16
public int nng_msg_header_trim_u16(MessagePointer msg, UInt16 size)
- Specified by:
nng_msg_header_trim_u16
in interfaceNngLibrary
-
nng_msg_header_trim_u32
public int nng_msg_header_trim_u32(MessagePointer msg, UInt32 size)
- Specified by:
nng_msg_header_trim_u32
in interfaceNngLibrary
-
nng_msg_header_trim_u64
public int nng_msg_header_trim_u64(MessagePointer msg, UInt64 size)
- Specified by:
nng_msg_header_trim_u64
in interfaceNngLibrary
-
nng_aio_abort
public void nng_aio_abort(AioPointer aio, int err)
- Specified by:
nng_aio_abort
in interfaceNngLibrary
-
nng_aio_alloc
public int nng_aio_alloc(AioPointerByReference aiop, NngCallback cb, com.sun.jna.Pointer arg)
- Specified by:
nng_aio_alloc
in interfaceNngLibrary
-
nng_aio_begin
public boolean nng_aio_begin(AioPointer aio)
- Specified by:
nng_aio_begin
in interfaceNngLibrary
-
nng_aio_cancel
public void nng_aio_cancel(AioPointer aio)
- Specified by:
nng_aio_cancel
in interfaceNngLibrary
-
nng_aio_count
public int nng_aio_count(AioPointer aio)
- Specified by:
nng_aio_count
in interfaceNngLibrary
-
nng_aio_defer
public void nng_aio_defer(AioPointer aio, NngCallback fn, com.sun.jna.Pointer arg)
- Specified by:
nng_aio_defer
in interfaceNngLibrary
-
nng_aio_finish
public void nng_aio_finish(AioPointer aio, int err)
- Specified by:
nng_aio_finish
in interfaceNngLibrary
-
nng_aio_free
public void nng_aio_free(AioPointer aio)
- Specified by:
nng_aio_free
in interfaceNngLibrary
-
nng_aio_get_input
public com.sun.jna.Pointer nng_aio_get_input(AioPointer aio, int index)
- Specified by:
nng_aio_get_input
in interfaceNngLibrary
-
nng_aio_get_msg
public com.sun.jna.Pointer nng_aio_get_msg(AioPointer aio)
- Specified by:
nng_aio_get_msg
in interfaceNngLibrary
-
nng_aio_get_output
public com.sun.jna.Pointer nng_aio_get_output(AioPointer aio, int index)
- Specified by:
nng_aio_get_output
in interfaceNngLibrary
-
nng_aio_result
public int nng_aio_result(AioPointer aio)
- Specified by:
nng_aio_result
in interfaceNngLibrary
-
nng_aio_set_input
public void nng_aio_set_input(AioPointer aio, int index, com.sun.jna.Pointer param)
- Specified by:
nng_aio_set_input
in interfaceNngLibrary
-
nng_aio_set_iov
public int nng_aio_set_iov(AioPointer aio, int niov, com.sun.jna.Pointer iov)
-
nng_aio_set_iov
public int nng_aio_set_iov(AioPointer aio, int niov, IovStruct[] iov)
- Specified by:
nng_aio_set_iov
in interfaceNngLibrary
-
nng_aio_set_msg
public void nng_aio_set_msg(AioPointer aio, MessagePointer msg)
- Specified by:
nng_aio_set_msg
in interfaceNngLibrary
-
nng_aio_set_output
public void nng_aio_set_output(AioPointer aio, int index, com.sun.jna.Pointer result)
- Specified by:
nng_aio_set_output
in interfaceNngLibrary
-
nng_aio_set_timeout
public void nng_aio_set_timeout(AioPointer aio, int timeoutMillis)
- Specified by:
nng_aio_set_timeout
in interfaceNngLibrary
-
nng_aio_stop
public void nng_aio_stop(AioPointer aio)
- Specified by:
nng_aio_stop
in interfaceNngLibrary
-
nng_aio_wait
public void nng_aio_wait(AioPointer aio)
- Specified by:
nng_aio_wait
in interfaceNngLibrary
-
nng_recv_aio
public void nng_recv_aio(SocketStruct.ByValue socket, AioPointer aio)
- Specified by:
nng_recv_aio
in interfaceNngLibrary
-
nng_send_aio
public void nng_send_aio(SocketStruct.ByValue socket, AioPointer aio)
- Specified by:
nng_send_aio
in interfaceNngLibrary
-
nng_sleep_aio
public void nng_sleep_aio(int durationMills, AioPointer aio)
- Specified by:
nng_sleep_aio
in interfaceNngLibrary
-
nng_bus0_open
public int nng_bus0_open(SocketStruct socket)
- Specified by:
nng_bus0_open
in interfaceNngLibrary
-
nng_bus0_open_raw
public int nng_bus0_open_raw(SocketStruct socket)
- Specified by:
nng_bus0_open_raw
in interfaceNngLibrary
-
nng_pair0_open
public int nng_pair0_open(SocketStruct socket)
- Specified by:
nng_pair0_open
in interfaceNngLibrary
-
nng_pair0_open_raw
public int nng_pair0_open_raw(SocketStruct socket)
- Specified by:
nng_pair0_open_raw
in interfaceNngLibrary
-
nng_pair1_open
public int nng_pair1_open(SocketStruct socket)
- Specified by:
nng_pair1_open
in interfaceNngLibrary
-
nng_pair1_open_raw
public int nng_pair1_open_raw(SocketStruct socket)
- Specified by:
nng_pair1_open_raw
in interfaceNngLibrary
-
nng_pub0_open
public int nng_pub0_open(SocketStruct socket)
- Specified by:
nng_pub0_open
in interfaceNngLibrary
-
nng_pub0_open_raw
public int nng_pub0_open_raw(SocketStruct socket)
- Specified by:
nng_pub0_open_raw
in interfaceNngLibrary
-
nng_pull0_open
public int nng_pull0_open(SocketStruct socket)
- Specified by:
nng_pull0_open
in interfaceNngLibrary
-
nng_pull0_open_raw
public int nng_pull0_open_raw(SocketStruct socket)
- Specified by:
nng_pull0_open_raw
in interfaceNngLibrary
-
nng_push0_open
public int nng_push0_open(SocketStruct socket)
- Specified by:
nng_push0_open
in interfaceNngLibrary
-
nng_push0_open_raw
public int nng_push0_open_raw(SocketStruct socket)
- Specified by:
nng_push0_open_raw
in interfaceNngLibrary
-
nng_rep0_open
public int nng_rep0_open(SocketStruct socket)
- Specified by:
nng_rep0_open
in interfaceNngLibrary
-
nng_rep0_open_raw
public int nng_rep0_open_raw(SocketStruct socket)
- Specified by:
nng_rep0_open_raw
in interfaceNngLibrary
-
nng_req0_open
public int nng_req0_open(SocketStruct socket)
- Specified by:
nng_req0_open
in interfaceNngLibrary
-
nng_req0_open_raw
public int nng_req0_open_raw(SocketStruct socket)
- Specified by:
nng_req0_open_raw
in interfaceNngLibrary
-
nng_respondent0_open
public int nng_respondent0_open(SocketStruct socket)
- Specified by:
nng_respondent0_open
in interfaceNngLibrary
-
nng_respondent0_open_raw
public int nng_respondent0_open_raw(SocketStruct socket)
- Specified by:
nng_respondent0_open_raw
in interfaceNngLibrary
-
nng_sub0_open
public int nng_sub0_open(SocketStruct socket)
- Specified by:
nng_sub0_open
in interfaceNngLibrary
-
nng_sub0_open_raw
public int nng_sub0_open_raw(SocketStruct socket)
- Specified by:
nng_sub0_open_raw
in interfaceNngLibrary
-
nng_surveyor0_open
public int nng_surveyor0_open(SocketStruct socket)
- Specified by:
nng_surveyor0_open
in interfaceNngLibrary
-
nng_surveyor0_open_raw
public int nng_surveyor0_open_raw(SocketStruct socket)
- Specified by:
nng_surveyor0_open_raw
in interfaceNngLibrary
-
nng_ctx_close
public int nng_ctx_close(ContextStruct.ByValue context)
- Specified by:
nng_ctx_close
in interfaceNngLibrary
-
nng_ctx_id
public int nng_ctx_id(ContextStruct.ByValue context)
- Specified by:
nng_ctx_id
in interfaceNngLibrary
-
nng_ctx_open
public int nng_ctx_open(ContextStruct context, SocketStruct.ByValue socket)
- Specified by:
nng_ctx_open
in interfaceNngLibrary
-
nng_ctx_recv
public void nng_ctx_recv(ContextStruct.ByValue context, AioPointer aio)
- Specified by:
nng_ctx_recv
in interfaceNngLibrary
-
nng_ctx_send
public void nng_ctx_send(ContextStruct.ByValue context, AioPointer aio)
- Specified by:
nng_ctx_send
in interfaceNngLibrary
-
nng_ctx_get
public int nng_ctx_get(ContextStruct.ByValue s, java.lang.String opt, com.sun.jna.Pointer val, SizeByReference size)
- Specified by:
nng_ctx_get
in interfaceNngLibrary
-
nng_ctx_get_bool
public int nng_ctx_get_bool(ContextStruct.ByValue s, java.lang.String opt, com.sun.jna.ptr.IntByReference bool)
- Specified by:
nng_ctx_get_bool
in interfaceNngLibrary
-
nng_ctx_get_int
public int nng_ctx_get_int(ContextStruct.ByValue s, java.lang.String opt, com.sun.jna.ptr.IntByReference intRef)
- Specified by:
nng_ctx_get_int
in interfaceNngLibrary
-
nng_ctx_get_size
public int nng_ctx_get_size(ContextStruct.ByValue s, java.lang.String opt, SizeByReference size)
- Specified by:
nng_ctx_get_size
in interfaceNngLibrary
-
nng_ctx_get_uint64
public int nng_ctx_get_uint64(ContextStruct.ByValue s, java.lang.String opt, UInt64ByReference uint64)
- Specified by:
nng_ctx_get_uint64
in interfaceNngLibrary
-
nng_ctx_get_string
public int nng_ctx_get_string(ContextStruct.ByValue s, java.lang.String opt, com.sun.jna.Pointer strings)
- Specified by:
nng_ctx_get_string
in interfaceNngLibrary
-
nng_ctx_get_ptr
public int nng_ctx_get_ptr(ContextStruct.ByValue s, java.lang.String opt, com.sun.jna.Pointer pointer)
- Specified by:
nng_ctx_get_ptr
in interfaceNngLibrary
-
nng_ctx_get_ms
public int nng_ctx_get_ms(ContextStruct.ByValue s, java.lang.String opt, com.sun.jna.ptr.IntByReference duration)
- Specified by:
nng_ctx_get_ms
in interfaceNngLibrary
-
nng_ctx_get_addr
public int nng_ctx_get_addr(ContextStruct.ByValue s, java.lang.String opt, SockAddr addr)
- Specified by:
nng_ctx_get_addr
in interfaceNngLibrary
-
nng_ctx_set
public int nng_ctx_set(ContextStruct.ByValue s, java.lang.String opt, com.sun.jna.Pointer val, Size size)
- Specified by:
nng_ctx_set
in interfaceNngLibrary
-
nng_ctx_set_bool
public int nng_ctx_set_bool(ContextStruct.ByValue s, java.lang.String opt, boolean bool)
- Specified by:
nng_ctx_set_bool
in interfaceNngLibrary
-
nng_ctx_set_int
public int nng_ctx_set_int(ContextStruct.ByValue s, java.lang.String opt, int intRef)
- Specified by:
nng_ctx_set_int
in interfaceNngLibrary
-
nng_ctx_set_size
public int nng_ctx_set_size(ContextStruct.ByValue s, java.lang.String opt, Size size)
- Specified by:
nng_ctx_set_size
in interfaceNngLibrary
-
nng_ctx_set_uint64
public int nng_ctx_set_uint64(ContextStruct.ByValue s, java.lang.String opt, UInt64 uint64)
- Specified by:
nng_ctx_set_uint64
in interfaceNngLibrary
-
nng_ctx_set_string
public int nng_ctx_set_string(ContextStruct.ByValue s, java.lang.String opt, java.lang.String string)
- Specified by:
nng_ctx_set_string
in interfaceNngLibrary
-
nng_ctx_set_ptr
public int nng_ctx_set_ptr(ContextStruct.ByValue s, java.lang.String opt, com.sun.jna.Pointer pointer)
- Specified by:
nng_ctx_set_ptr
in interfaceNngLibrary
-
nng_ctx_set_ms
public int nng_ctx_set_ms(ContextStruct.ByValue s, java.lang.String opt, int duration)
- Specified by:
nng_ctx_set_ms
in interfaceNngLibrary
-
nng_url_parse
public int nng_url_parse(UrlByReference urlPointer, java.lang.String rawUrl)
- Specified by:
nng_url_parse
in interfaceNngLibrary
-
nng_url_free
public void nng_url_free(UrlStruct url)
- Specified by:
nng_url_free
in interfaceNngLibrary
-
nng_http_conn_close
public void nng_http_conn_close(com.sun.jna.Pointer client)
- Specified by:
nng_http_conn_close
in interfaceNngLibrary
-
nng_http_conn_read
public void nng_http_conn_read(com.sun.jna.Pointer client, AioPointer aio)
- Specified by:
nng_http_conn_read
in interfaceNngLibrary
-
nng_http_conn_read_all
public void nng_http_conn_read_all(com.sun.jna.Pointer conn, AioPointer aio)
- Specified by:
nng_http_conn_read_all
in interfaceNngLibrary
-
nng_http_conn_read_req
public void nng_http_conn_read_req(com.sun.jna.Pointer conn, HttpReqPointer req, AioPointer aio)
- Specified by:
nng_http_conn_read_req
in interfaceNngLibrary
-
nng_http_conn_read_res
public void nng_http_conn_read_res(com.sun.jna.Pointer conn, HttpResPointer res, AioPointer aio)
- Specified by:
nng_http_conn_read_res
in interfaceNngLibrary
-
nng_http_conn_write_all
public void nng_http_conn_write_all(com.sun.jna.Pointer conn, AioPointer aio)
- Specified by:
nng_http_conn_write_all
in interfaceNngLibrary
-
nng_http_conn_write_req
public void nng_http_conn_write_req(com.sun.jna.Pointer conn, HttpReqPointer req, AioPointer aio)
- Specified by:
nng_http_conn_write_req
in interfaceNngLibrary
-
nng_http_conn_write_res
public void nng_http_conn_write_res(com.sun.jna.Pointer conn, HttpResPointer res, AioPointer aio)
- Specified by:
nng_http_conn_write_res
in interfaceNngLibrary
-
nng_http_req_add_header
public int nng_http_req_add_header(HttpReqPointer req, java.lang.String key, java.lang.String val)
- Specified by:
nng_http_req_add_header
in interfaceNngLibrary
-
nng_http_req_alloc
public int nng_http_req_alloc(HttpReqPointerByReference req, UrlStruct url)
- Specified by:
nng_http_req_alloc
in interfaceNngLibrary
-
nng_http_req_copy_data
public int nng_http_req_copy_data(HttpReqPointer req, java.nio.ByteBuffer data, Size size)
- Specified by:
nng_http_req_copy_data
in interfaceNngLibrary
-
nng_http_req_del_header
public int nng_http_req_del_header(HttpReqPointer req, java.lang.String key)
- Specified by:
nng_http_req_del_header
in interfaceNngLibrary
-
nng_http_req_free
public void nng_http_req_free(HttpReqPointer req)
- Specified by:
nng_http_req_free
in interfaceNngLibrary
-
nng_http_req_get_data
public int nng_http_req_get_data(HttpReqPointer req, BodyPointerByReference ref, SizeByReference size)
- Specified by:
nng_http_req_get_data
in interfaceNngLibrary
-
nng_http_req_get_header
public java.lang.String nng_http_req_get_header(HttpReqPointer req, java.lang.String key)
- Specified by:
nng_http_req_get_header
in interfaceNngLibrary
-
nng_http_req_get_method
public java.lang.String nng_http_req_get_method(HttpReqPointer req)
- Specified by:
nng_http_req_get_method
in interfaceNngLibrary
-
nng_http_req_get_uri
public java.lang.String nng_http_req_get_uri(HttpReqPointer req)
- Specified by:
nng_http_req_get_uri
in interfaceNngLibrary
-
nng_http_req_get_version
public java.lang.String nng_http_req_get_version(HttpReqPointer req)
- Specified by:
nng_http_req_get_version
in interfaceNngLibrary
-
nng_http_req_reset
public void nng_http_req_reset(HttpReqPointer req)
- Specified by:
nng_http_req_reset
in interfaceNngLibrary
-
nng_http_req_set_data
public int nng_http_req_set_data(HttpReqPointer req, java.nio.ByteBuffer data, Size size)
- Specified by:
nng_http_req_set_data
in interfaceNngLibrary
-
nng_http_req_set_header
public int nng_http_req_set_header(HttpReqPointer req, java.lang.String key, java.lang.String val)
- Specified by:
nng_http_req_set_header
in interfaceNngLibrary
-
nng_http_req_set_method
public int nng_http_req_set_method(HttpReqPointer req, java.lang.String method)
- Specified by:
nng_http_req_set_method
in interfaceNngLibrary
-
nng_http_req_set_uri
public int nng_http_req_set_uri(HttpReqPointer req, java.lang.String uri)
- Specified by:
nng_http_req_set_uri
in interfaceNngLibrary
-
nng_http_req_set_version
public int nng_http_req_set_version(HttpReqPointer req, java.lang.String version)
- Specified by:
nng_http_req_set_version
in interfaceNngLibrary
-
nng_http_res_add_header
public int nng_http_res_add_header(HttpResPointer req, java.lang.String key, java.lang.String val)
- Specified by:
nng_http_res_add_header
in interfaceNngLibrary
-
nng_http_res_alloc
public int nng_http_res_alloc(HttpResPointerByReference ref)
- Specified by:
nng_http_res_alloc
in interfaceNngLibrary
-
nng_http_res_alloc_error
public int nng_http_res_alloc_error(HttpResPointerByReference ref, short status)
- Specified by:
nng_http_res_alloc_error
in interfaceNngLibrary
-
nng_http_res_copy_data
public int nng_http_res_copy_data(HttpResPointer res, java.nio.ByteBuffer data, Size size)
- Specified by:
nng_http_res_copy_data
in interfaceNngLibrary
-
nng_http_res_del_header
public int nng_http_res_del_header(HttpResPointer res, java.lang.String key)
- Specified by:
nng_http_res_del_header
in interfaceNngLibrary
-
nng_http_res_free
public void nng_http_res_free(HttpResPointer res)
- Specified by:
nng_http_res_free
in interfaceNngLibrary
-
nng_http_res_get_data
public void nng_http_res_get_data(HttpResPointer res, BodyPointerByReference ref, SizeByReference size)
- Specified by:
nng_http_res_get_data
in interfaceNngLibrary
-
nng_http_res_get_header
public java.lang.String nng_http_res_get_header(HttpResPointer res, java.lang.String key)
- Specified by:
nng_http_res_get_header
in interfaceNngLibrary
-
nng_http_res_get_reason
public java.lang.String nng_http_res_get_reason(HttpResPointer res)
- Specified by:
nng_http_res_get_reason
in interfaceNngLibrary
-
nng_http_res_get_status
public short nng_http_res_get_status(HttpResPointer res)
- Specified by:
nng_http_res_get_status
in interfaceNngLibrary
-
nng_http_res_get_version
public java.lang.String nng_http_res_get_version(HttpResPointer res)
- Specified by:
nng_http_res_get_version
in interfaceNngLibrary
-
nng_http_res_reset
public void nng_http_res_reset(HttpResPointer res)
- Specified by:
nng_http_res_reset
in interfaceNngLibrary
-
nng_http_res_set_data
public int nng_http_res_set_data(HttpResPointer res, java.nio.ByteBuffer data, Size size)
- Specified by:
nng_http_res_set_data
in interfaceNngLibrary
-
nng_http_res_set_header
public int nng_http_res_set_header(HttpResPointer res, java.lang.String key, java.lang.String val)
- Specified by:
nng_http_res_set_header
in interfaceNngLibrary
-
nng_http_res_set_reason
public int nng_http_res_set_reason(HttpResPointer res, java.lang.String reason)
- Specified by:
nng_http_res_set_reason
in interfaceNngLibrary
-
nng_http_res_set_status
public int nng_http_res_set_status(HttpResPointer res, short status)
- Specified by:
nng_http_res_set_status
in interfaceNngLibrary
-
nng_http_res_set_version
public int nng_http_res_set_version(HttpResPointer res, java.lang.String version)
- Specified by:
nng_http_res_set_version
in interfaceNngLibrary
-
nng_http_client_alloc
public int nng_http_client_alloc(HttpClientPointerByReference client, UrlStruct url)
- Specified by:
nng_http_client_alloc
in interfaceNngLibrary
-
nng_http_client_free
public void nng_http_client_free(HttpClientPointer client)
- Specified by:
nng_http_client_free
in interfaceNngLibrary
-
nng_http_client_connect
public void nng_http_client_connect(HttpClientPointer client, AioPointer aio)
- Specified by:
nng_http_client_connect
in interfaceNngLibrary
-
nng_http_handler_alloc_static
public int nng_http_handler_alloc_static(HttpHandlerPointerByReference handlerRef, java.lang.String path, com.sun.jna.Pointer data, Size size, java.lang.String contentType)
- Specified by:
nng_http_handler_alloc_static
in interfaceNngLibrary
-
nng_http_handler_free
public void nng_http_handler_free(HttpHandlerPointer handler)
- Specified by:
nng_http_handler_free
in interfaceNngLibrary
-
nng_http_server_add_handler
public int nng_http_server_add_handler(HttpServerPointer server, HttpHandlerPointer handler)
- Specified by:
nng_http_server_add_handler
in interfaceNngLibrary
-
nng_http_server_del_handler
public int nng_http_server_del_handler(HttpServerPointer server, HttpHandlerPointer handler)
- Specified by:
nng_http_server_del_handler
in interfaceNngLibrary
-
nng_http_server_get_addr
public int nng_http_server_get_addr(HttpServerPointer server, SockAddr addr)
- Specified by:
nng_http_server_get_addr
in interfaceNngLibrary
-
nng_http_server_hold
public int nng_http_server_hold(HttpServerPointerByReference serverRef, UrlStruct url)
- Specified by:
nng_http_server_hold
in interfaceNngLibrary
-
nng_http_server_release
public void nng_http_server_release(HttpServerPointer server)
- Specified by:
nng_http_server_release
in interfaceNngLibrary
-
nng_http_server_start
public int nng_http_server_start(HttpServerPointer server)
- Specified by:
nng_http_server_start
in interfaceNngLibrary
-
nng_http_server_stop
public void nng_http_server_stop(HttpServerPointer server)
- Specified by:
nng_http_server_stop
in interfaceNngLibrary
-
nng_tls_config_alloc
public int nng_tls_config_alloc(TlsConfigByReference ref, int mode)
- Specified by:
nng_tls_config_alloc
in interfaceNngLibrary
-
nng_tls_config_auth_mode
public int nng_tls_config_auth_mode(TlsConfigPointer cfg, int mode)
- Specified by:
nng_tls_config_auth_mode
in interfaceNngLibrary
-
nng_tls_config_ca_chain
public int nng_tls_config_ca_chain(TlsConfigPointer cfg, java.lang.String chain, java.lang.String crl)
- Specified by:
nng_tls_config_ca_chain
in interfaceNngLibrary
-
nng_tls_config_ca_file
public int nng_tls_config_ca_file(TlsConfigPointer cfg, java.lang.String path)
- Specified by:
nng_tls_config_ca_file
in interfaceNngLibrary
-
nng_tls_config_cert_key_file
public int nng_tls_config_cert_key_file(TlsConfigPointer cfg, java.lang.String pathToKey, java.lang.String password)
- Specified by:
nng_tls_config_cert_key_file
in interfaceNngLibrary
-
nng_tls_config_free
public int nng_tls_config_free(TlsConfigPointer cfg)
- Specified by:
nng_tls_config_free
in interfaceNngLibrary
-
nng_tls_config_hold
public int nng_tls_config_hold(TlsConfigPointer cfg)
- Specified by:
nng_tls_config_hold
in interfaceNngLibrary
-
nng_tls_config_own_cert
public int nng_tls_config_own_cert(TlsConfigPointer cfg, java.lang.String cert, java.lang.String key, java.lang.String password)
- Specified by:
nng_tls_config_own_cert
in interfaceNngLibrary
-
nng_tls_config_server_name
public int nng_tls_config_server_name(TlsConfigPointer cfg, java.lang.String serverName)
- Specified by:
nng_tls_config_server_name
in interfaceNngLibrary
-
nng_tls_config_version
public int nng_tls_config_version(TlsConfigPointer cfg, int minVersion, int maxVersion)
- Specified by:
nng_tls_config_version
in interfaceNngLibrary
-
nng_tls_engine_description
public java.lang.String nng_tls_engine_description()
- Specified by:
nng_tls_engine_description
in interfaceNngLibrary
-
nng_tls_engine_fips_mode
public boolean nng_tls_engine_fips_mode()
- Specified by:
nng_tls_engine_fips_mode
in interfaceNngLibrary
-
nng_tls_engine_name
public java.lang.String nng_tls_engine_name()
- Specified by:
nng_tls_engine_name
in interfaceNngLibrary
-
-