本文整理匯總了Golang中C.zmq_version函數的典型用法代碼示例。如果您正苦於以下問題:Golang zmq_version函數的具體用法?Golang zmq_version怎麽用?Golang zmq_version使用的例子?那麽, 這裏精選的函數代碼示例或許可以為您提供幫助。
在下文中一共展示了zmq_version函數的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Golang代碼示例。
示例1: Version
func Version() (int, int, int) {
var major C.int
var minor C.int
var patch C.int
C.zmq_version(&major, &minor, &patch)
return int(major), int(minor), int(patch)
}
示例2: Version
// Report 0MQ library version.
func Version() (major, minor, patch int) {
var maj, min, pat C.int
C.zmq_version(&maj, &min, &pat)
return int(maj), int(min), int(pat)
}
示例3: Version
// Version reports 0MQ library version.
func Version() (major, minor, patch int) {
var ma, mi, pa C.int
C.zmq_version(&ma, &mi, &pa)
return int(ma), int(mi), int(pa)
}
示例4: Version
func (p *libZmqProvider) Version() (major int, minor int, pl int) {
C.zmq_version((*C.int)(unsafe.Pointer(&major)), (*C.int)(unsafe.Pointer(&minor)), (*C.int)(unsafe.Pointer(&pl)))
return
}