mirror of
https://gitee.com/rainbond/Rainbond.git
synced 2024-12-05 21:27:47 +08:00
16 lines
262 B
Go
16 lines
262 B
Go
// +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)
|
|
}
|