- bindvoid bind(char[] endpoint) 
- Starts accepting incoming connections on endpoint. 
- closevoid close() 
- Closes the $(ZMQ) socket. 
- connectvoid connect(char[] endpoint) 
- Creates an outgoing connection to endpoint. 
- disconnectvoid disconnect(char[] endpoint) 
- Disconnects the socket from endpoint. 
- getCurvePublicKeyubyte[] getCurvePublicKey(ubyte[] dest) 
- getCurvePublicKeyZ85char[] getCurvePublicKeyZ85(char[] dest) 
- getCurveSecretKeyubyte[] getCurveSecretKey(ubyte[] dest) 
- getCurveSecretKeyZ85char[] getCurveSecretKeyZ85(char[] dest) 
- getCurveServerKeyubyte[] getCurveServerKey(ubyte[] dest) 
- getCurveServerKeyZ85char[] getCurveServerKeyZ85(char[] dest) 
- getGssapiPrincipalchar[] getGssapiPrincipal(char[] dest) 
- getGssapiServicePrincipalchar[] getGssapiServicePrincipal(char[] dest) 
- getIdentityubyte[] getIdentity(ubyte[] dest) 
- getPlainPasswordchar[] getPlainPassword(char[] dest) 
- getPlainUsernamechar[] getPlainUsername(char[] dest) 
- getZapDomainchar[] getZapDomain(char[] dest) 
- $(ANCHOR Socket.misc_options)
    Miscellaneous socket options. 
- monitorvoid monitor(char[] endpoint, EventType events) 
- Spawns a PAIR socket that publishes socket state changes (_events) over
    the INPROC transport to the given _endpoint. 
- receivesize_t receive(ubyte[] data) 
- Receives a message frame. 
- receivesize_t receive(Frame msg) 
- Receives a message frame. 
- sendvoid send(ubyte[] data, bool more) 
- void send(char[] data, bool more) 
- sendvoid send(Frame msg, bool more) 
- sendConstvoid sendConst(ubyte[] data, bool more) 
- void sendConst(string data, bool more) 
- Sends a constant-memory message frame. 
- subscribevoid subscribe(char[] filterPrefix) 
- Establishes a message filter. 
- subscribevoid subscribe(ubyte[] filterPrefix) 
- Establishes a message filter. 
- tryReceiveTuple!(size_t, bool) tryReceive(ubyte[] data) 
- Receives a message frame. 
- tryReceiveTuple!(size_t, bool) tryReceive(Frame msg) 
- Receives a message frame. 
- trySendbool trySend(ubyte[] data, bool more) 
- bool trySend(char[] data, bool more) 
- trySendbool trySend(Frame msg, bool more) 
- trySendConstbool trySendConst(ubyte[] data, bool more) 
- bool trySendConst(string data, bool more) 
- Sends a constant-memory message frame. 
- unbindvoid unbind(char[] endpoint) 
- Stops accepting incoming connections on endpoint. 
- unsubscribevoid unsubscribe(char[] filterPrefix) 
- Removes a message filter. 
- unsubscribevoid unsubscribe(ubyte[] filterPrefix) 
- Removes a message filter. 
- backlogint backlog [@property getter] 
- int backlog [@property setter] 
- conflatebool conflate [@property setter] 
- connectionRIDubyte[] connectionRID [@property setter] 
- curvePublicKeyconst(ubyte)[] curvePublicKey [@property setter] 
- ubyte[] curvePublicKey [@property getter] 
- curvePublicKeyZ85const(char)[] curvePublicKeyZ85 [@property setter] 
- char[] curvePublicKeyZ85 [@property getter] 
- curveSecretKeyconst(ubyte)[] curveSecretKey [@property setter] 
- ubyte[] curveSecretKey [@property getter] 
- curveSecretKeyZ85const(char)[] curveSecretKeyZ85 [@property setter] 
- char[] curveSecretKeyZ85 [@property getter] 
- curveServerbool curveServer [@property setter] 
- bool curveServer [@property getter] 
- curveServerKeyconst(ubyte)[] curveServerKey [@property setter] 
- ubyte[] curveServerKey [@property getter] 
- curveServerKeyZ85const(char)[] curveServerKeyZ85 [@property setter] 
- char[] curveServerKeyZ85 [@property getter] 
- $(ANCHOR Socket.misc_options)
    Miscellaneous socket options. 
- delayAttachOnConnectdeprecated bool delayAttachOnConnect [@property setter] 
- Undocumented in source. Be warned that the author may not have intended to support it. 
- delayAttachOnConnectdeprecated bool delayAttachOnConnect [@property getter] 
- Undocumented in source. Be warned that the author may not have intended to support it. 
- eventsPollFlags events [@property getter] 
- fdFD fd [@property getter] 
- gssapiPlaintextbool gssapiPlaintext [@property setter] 
- bool gssapiPlaintext [@property getter] 
- gssapiPrincipalchar[] gssapiPrincipal [@property setter] 
- char[] gssapiPrincipal [@property getter] 
- gssapiServerbool gssapiServer [@property setter] 
- bool gssapiServer [@property getter] 
- gssapiServicePrincipalchar[] gssapiServicePrincipal [@property setter] 
- char[] gssapiServicePrincipal [@property getter] 
- $(ANCHOR Socket.misc_options)
    Miscellaneous socket options. 
- handleinout(void)* handle [@property getter] 
- The void* pointer used by the underlying C API to refer to the socket. 
- handshakeIntervalDuration handshakeInterval [@property setter] 
- Duration handshakeInterval [@property getter] 
- identityubyte[] identity [@property getter] 
- ubyte[] identity [@property setter] 
- char[] identity [@property setter] 
- immediatebool immediate [@property getter] 
- bool immediate [@property setter] 
- $(ANCHOR Socket.misc_options)
    Miscellaneous socket options. 
- initializedbool initialized [@property getter] 
- Whether this Socket object has been initialized, i.e. whether it
    refers to a valid $(ZMQ) socket. 
- ipv4Onlydeprecated bool ipv4Only [@property getter] 
- Undocumented in source. Be warned that the author may not have intended to support it. 
- ipv4Onlydeprecated bool ipv4Only [@property setter] 
- Undocumented in source. Be warned that the author may not have intended to support it. 
- ipv6bool ipv6 [@property setter] 
- bool ipv6 [@property getter] 
- lastEndpointchar[] lastEndpoint [@property getter] 
- lingerDuration linger [@property setter] 
- Duration linger [@property getter] 
- maxMsgSizelong maxMsgSize [@property setter] 
- long maxMsgSize [@property getter] 
- maxReconnectionIntervalDuration maxReconnectionInterval [@property setter] 
- Duration maxReconnectionInterval [@property getter] 
- mechanismSecurity mechanism [@property getter] 
- $(ANCHOR Socket.misc_options)
    Miscellaneous socket options. 
- morebool more [@property getter] 
- Whether there are more message frames to follow. 
- multicastHopsint multicastHops [@property setter] 
- int multicastHops [@property getter] 
- plainPasswordconst(char)[] plainPassword [@property setter] 
- plainServerbool plainServer [@property getter] 
- bool plainServer [@property setter] 
- plainUsernameconst(char)[] plainUsername [@property setter] 
- probeRouterbool probeRouter [@property setter] 
- rateint rate [@property setter] 
- int rate [@property getter] 
- receiveBufferSizeint receiveBufferSize [@property setter] 
- int receiveBufferSize [@property getter] 
- receiveHWMint receiveHWM [@property setter] 
- int receiveHWM [@property getter] 
- receiveTimeoutDuration receiveTimeout [@property setter] 
- Duration receiveTimeout [@property getter] 
- reconnectionIntervalDuration reconnectionInterval [@property setter] 
- Duration reconnectionInterval [@property getter] 
- recoveryIntervalDuration recoveryInterval [@property setter] 
- Duration recoveryInterval [@property getter] 
- reqCorrelatebool reqCorrelate [@property setter] 
- reqRelaxedbool reqRelaxed [@property setter] 
- routerHandoverbool routerHandover [@property setter] 
- routerMandatorybool routerMandatory [@property setter] 
- sendBufferSizeint sendBufferSize [@property setter] 
- int sendBufferSize [@property getter] 
- sendHWMint sendHWM [@property setter] 
- int sendHWM [@property getter] 
- sendTimeoutDuration sendTimeout [@property setter] 
- Duration sendTimeout [@property getter] 
- tcpKeepaliveint tcpKeepalive [@property setter] 
- int tcpKeepalive [@property getter] 
- tcpKeepaliveCntint tcpKeepaliveCnt [@property setter] 
- int tcpKeepaliveCnt [@property getter] 
- tcpKeepaliveIdleint tcpKeepaliveIdle [@property setter] 
- int tcpKeepaliveIdle [@property getter] 
- tcpKeepaliveIntvlint tcpKeepaliveIntvl [@property setter] 
- int tcpKeepaliveIntvl [@property getter] 
- threadAffinityulong threadAffinity [@property setter] 
- $(ANCHOR Socket.misc_options)
    Miscellaneous socket options. 
- threadAffinityulong threadAffinity [@property getter] 
- typeSocketType type [@property getter] 
- typeOfServiceint typeOfService [@property getter] 
- int typeOfService [@property setter] 
- xpubVerbosebool xpubVerbose [@property setter] 
- zapDomainchar[] zapDomain [@property getter] 
- char[] zapDomain [@property setter] 
- $(ANCHOR Socket.misc_options)
    Miscellaneous socket options. 
An object that encapsulates a $(ZMQ) socket.
A default-initialized Socket is not a valid $(ZMQ) socket; it must always be explicitly initialized with a constructor (see $(FREF _Socket.this)):
This struct is noncopyable, which means that a socket is always uniquely managed by a single Socket object. Functions that will inspect or use the socket, but not take ownership of it, should take a ref Socket parameter. Use $(STDREF algorithm,move) to move a Socket to a different location (e.g. into a sink function that takes it by value, or into a new variable).
The socket is automatically closed when the Socket object goes out of scope.