Displaying 1 result from an estimated 1 matches for "alias_ptr".
Did you mean:
alias_for
2008 Jun 07
2
Unraveling a protoent struct
I''m spacing - how do I unravel a protent struct pointer?
require ''win32/api''
include Win32
getprotobyname = API.new(''getprotobyname'', ''P'', ''P'', ''ws2_32'')
ptr = getprotobyname.call(''tcp'')
puts "Name: " + # ???
puts "Aliases: " + # ???
puts "Number: "