Method: Fiddle.win32_last_socket_error
- Defined in:
- lib/fiddle.rb
.win32_last_socket_error ⇒ Object
Returns the last win32 socket Error
of the current executing Thread
or nil if none
36 37 38 39 40 41 42 43 |
# File 'lib/fiddle.rb', line 36 def self.win32_last_socket_error if RUBY_ENGINE == 'jruby' errno = FFI.errno errno == 0 ? nil : errno else Thread.current[:__FIDDLE_WIN32_LAST_SOCKET_ERROR__] end end |