1// +build !windows 2 3package zmq4 4 5/* 6#include <zmq.h> 7*/ 8import "C" 9 10// ZMQ_FD: Retrieve file descriptor associated with the socket 11// 12// See: http://api.zeromq.org/4-1:zmq-getsockopt#toc9 13func (soc *Socket) GetFd() (int, error) { 14 return soc.getInt(C.ZMQ_FD) 15} 16