Class: NanoMsg::PairSocket
- Inherits:
-
Socket
- Object
- Socket
- NanoMsg::PairSocket
show all
- Defined in:
- lib/nanomsg/pair_socket.rb,
ext/init.c
Instance Method Summary
collapse
Methods inherited from Socket
#bind, #connect, #recv, #send
Constructor Details
#initialize ⇒ Object
239
240
241
242
243
244
245
246
247
248
249
250
|
# File 'ext/init.c', line 239
static VALUE
pair_sock_init(VALUE socket)
{
struct nmsg_socket *psock = sock_get_ptr(socket);
psock->socket = nn_socket(AF_SP, NN_PAIR);
if (psock->socket < 0) {
sock_raise_error(psock->socket);
}
return socket;
}
|