#NEWLINE# def getsockopt( self , level , option ) : #NEWLINE# #INDENT# buf = ffi . new ( 'int*' ) #NEWLINE# size = ffi . new ( 'size_t*' ) #NEWLINE# size [ 0 ] = 4 #NEWLINE# rc = nanomsg . nn_getsockopt ( self . sock , level , option , buf , size ) #NEWLINE# assert ( rc >= 0 ) , rc #NEWLINE# return buf [ 0 ]