Method: Fiddle.win32_last_socket_error=
- Defined in:
- lib/fiddle.rb
.win32_last_socket_error=(error) ⇒ Object
Sets the last win32 socket Error
of the current executing Thread
to error
47 48 49 50 51 52 53 |
# File 'lib/fiddle.rb', line 47 def self.win32_last_socket_error= error if RUBY_ENGINE == 'jruby' FFI.errno = error || 0 else Thread.current[:__FIDDLE_WIN32_LAST_SOCKET_ERROR__] = error end end |