Linux premium82.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
LiteSpeed
Server IP : 185.61.154.194 & Your IP : 216.73.216.77
Domains :
Cant Read [ /etc/named.conf ]
User : evicodqw
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
opt /
alt /
ruby18 /
share /
ri /
1.8 /
system /
BasicSocket /
Delete
Unzip
Name
Size
Permission
Date
Action
cdesc-BasicSocket.yaml
1.76
KB
-rw-r--r--
2023-07-26 13:47
getsockopt-i.yaml
2.14
KB
-rw-r--r--
2023-07-26 13:47
recv_nonblock-i.yaml
1.89
KB
-rw-r--r--
2023-07-26 13:47
setsockopt-i.yaml
2.77
KB
-rw-r--r--
2023-07-26 13:47
Save
Rename
--- !ruby/object:RI::MethodDescription aliases: [] block_params: comment: - !ruby/struct:SM::Flow::P body: Gets a socket option. These are protocol and system specific, see your local sytem documentation for details. The option is returned as a String with the data being the binary value of the socket option. - !ruby/struct:SM::Flow::H level: 3 text: Parameters - !ruby/object:SM::Flow::LIST contents: - !ruby/struct:SM::Flow::LI label: "*" body: <tt>level</tt> is an integer, usually one of the SOL_ constants such as Socket::SOL_SOCKET, or a protocol level. - !ruby/struct:SM::Flow::LI label: "*" body: <tt>optname</tt> is an integer, usually one of the SO_ constants, such as Socket::SO_REUSEADDR. type: :BULLET - !ruby/struct:SM::Flow::H level: 3 text: Examples - !ruby/struct:SM::Flow::P body: "Some socket options are integers with boolean values, in this case #getsockopt could be called like this:" - !ruby/struct:SM::Flow::VERB body: " optval = sock.getsockopt(Socket::SOL_SOCKET,Socket::SO_REUSEADDR)\n optval = optval.unpack "i"\n reuseaddr = optval[0] == 0 ? false : true\n" - !ruby/struct:SM::Flow::P body: "Some socket options are integers with numeric values, in this case #getsockopt could be called like this:" - !ruby/struct:SM::Flow::VERB body: " optval = sock.getsockopt(Socket::IPPROTO_IP, Socket::IP_TTL)\n ipttl = optval.unpack("i")[0]\n" - !ruby/struct:SM::Flow::P body: "Option values may be structs. Decoding them can be complex as it involves examining your system headers to determine the correct definition. An example is a +struct linger+, which may be defined in your system headers as:" - !ruby/struct:SM::Flow::VERB body: " struct linger {\n int l_onoff;\n int l_linger;\n };\n" - !ruby/struct:SM::Flow::P body: "In this case #getsockopt could be called like this:" - !ruby/struct:SM::Flow::VERB body: " optval = sock.getsockopt(Socket::SOL_SOCKET, Socket::SO_LINGER)\n onoff, linger = optval.unpack "ii"\n" full_name: BasicSocket#getsockopt is_singleton: false name: getsockopt params: " getsockopt(level, optname)\n" visibility: public