Merge pull request #6 from goloveychuk/master

fix getEvents
This commit is contained in:
Paulo Faria 2016-03-05 17:55:11 -03:00
commit 4f528ab28e
1 changed files with 1 additions and 1 deletions

View File

@ -561,7 +561,7 @@ extension Socket {
public func getEvents() throws -> PollEvent? {
var value: Int32 = 0
var length = strideof(Int32)
try getOption(ZMQ_TCP_KEEPALIVE, value: &value, length: &length)
try getOption(ZMQ_EVENTS, value: &value, length: &length)
return Int(value) == -1 ? nil : PollEvent(rawValue: Int16(value))
}