NNGSocket

Undocumented in source.
struct NNGSocket {}

Constructors

this
this()
Undocumented in source.
this
this(nng_socket_type itype, bool iraw)
Undocumented in source.

Members

Functions

clearsubscribe
int clearsubscribe()
Undocumented in source. Be warned that the author may not have intended to support it.
close
int close()
Undocumented in source. Be warned that the author may not have intended to support it.
dial
int dial(const(string) url, bool nonblock)
Undocumented in source. Be warned that the author may not have intended to support it.
dialer_create
int dialer_create(const(string) url)
Undocumented in source. Be warned that the author may not have intended to support it.
dialer_start
int dialer_start(bool nonblock)
Undocumented in source. Be warned that the author may not have intended to support it.
listen
int listen(const(string) url, bool nonblock)
Undocumented in source. Be warned that the author may not have intended to support it.
listener_create
int listener_create(const(string) url)
Undocumented in source. Be warned that the author may not have intended to support it.
listener_start
int listener_start(bool nonblock)
Undocumented in source. Be warned that the author may not have intended to support it.
name
string name()
Undocumented in source. Be warned that the author may not have intended to support it.
name
void name(string val)
Undocumented in source. Be warned that the author may not have intended to support it.
receive
T receive(bool nonblock)
Undocumented in source. Be warned that the author may not have intended to support it.
receiveaio
int receiveaio(NNGAio aio)
Undocumented in source. Be warned that the author may not have intended to support it.
receivebuf
size_t receivebuf(ubyte[] data, size_t sz, bool nonblock)
Undocumented in source.
receivemsg
int receivemsg(NNGMessage* msg, bool nonblock)
Undocumented in source. Be warned that the author may not have intended to support it.
send
int send(const(T) data, bool nonblock)
Undocumented in source. Be warned that the author may not have intended to support it.
sendaio
int sendaio(NNGAio aio)
Undocumented in source. Be warned that the author may not have intended to support it.
sendmsg
int sendmsg(NNGMessage msg, bool nonblock)
Undocumented in source. Be warned that the author may not have intended to support it.
subscribe
int subscribe(string tag)
Undocumented in source. Be warned that the author may not have intended to support it.
subscriptions
string[] subscriptions()
Undocumented in source. Be warned that the author may not have intended to support it.
unsubscribe
int unsubscribe(string tag)
Undocumented in source. Be warned that the author may not have intended to support it.

Properties

errno
int errno [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
locaddr
nng_sockaddr locaddr [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
maxttl
int maxttl [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
maxttl
uint maxttl [@property setter]

MAXTTL a value between 0 and 255, inclusive. Where 0 is infinite

peer
int peer [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
peername
string peername [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
proto
int proto [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
protoname
string protoname [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
raw
bool raw [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
reconnmaxt
Duration reconnmaxt [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
reconnmaxt
Duration reconnmaxt [@property setter]
Undocumented in source. Be warned that the author may not have intended to support it.
reconnmint
Duration reconnmint [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
reconnmint
Duration reconnmint [@property setter]
Undocumented in source. Be warned that the author may not have intended to support it.
recvbuf
int recvbuf [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
recvbuf
int recvbuf [@property setter]
Undocumented in source. Be warned that the author may not have intended to support it.
recvfd
int recvfd [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
recvmaxsz
int recvmaxsz [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
recvmaxsz
int recvmaxsz [@property setter]
Undocumented in source. Be warned that the author may not have intended to support it.
recvtimeout
Duration recvtimeout [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
recvtimeout
Duration recvtimeout [@property setter]
Undocumented in source. Be warned that the author may not have intended to support it.
remaddr
nng_sockaddr remaddr [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
sendbuf
int sendbuf [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
sendbuf
int sendbuf [@property setter]
Undocumented in source. Be warned that the author may not have intended to support it.
sendfd
int sendfd [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
sendtimeout
Duration sendtimeout [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
sendtimeout
Duration sendtimeout [@property setter]
Undocumented in source. Be warned that the author may not have intended to support it.
state
int state [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
type
nng_socket_type type [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
url
string url [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
versionstring
string versionstring [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.

Variables

m_ctx
nng_ctx[] m_ctx;
Undocumented in source.
m_dialer
nng_dialer m_dialer;
Undocumented in source.
m_errno
nng_errno m_errno;
Undocumented in source.
m_listener
nng_listener m_listener;
m_may_recv
bool m_may_recv;
Undocumented in source.
m_may_send
bool m_may_send;
Undocumented in source.
m_name
string m_name;
Undocumented in source.
m_raw
bool m_raw;
Undocumented in source.
m_socket
nng_socket m_socket;
Undocumented in source.
m_state
nng_socket_state m_state;
Undocumented in source.
m_subscriptions
string[] m_subscriptions;
Undocumented in source.
m_type
nng_socket_type m_type;
Undocumented in source.

Meta