forked from hush/lightwalletd
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
262 B
16 lines
262 B
5 years ago
|
// +build !windows
|
||
|
|
||
|
package zmq4
|
||
|
|
||
|
/*
|
||
|
#include <zmq.h>
|
||
|
*/
|
||
|
import "C"
|
||
|
|
||
|
// ZMQ_FD: Retrieve file descriptor associated with the socket
|
||
|
//
|
||
|
// See: http://api.zeromq.org/4-1:zmq-getsockopt#toc9
|
||
|
func (soc *Socket) GetFd() (int, error) {
|
||
|
return soc.getInt(C.ZMQ_FD)
|
||
|
}
|