Bug #7105 ยป 0001-Fix-typo-in-Socket-docs.patch
ext/socket/socket.c | ||
---|---|---|
* sockets of these types compared to C programming.
|
||
*
|
||
* # Creating a TCP socket in a C-like manner
|
||
* s = Socket.new Socket::INET, Socket::SOCK_STREAM
|
||
* s = Socket.new Socket::AF_INET, Socket::SOCK_STREAM
|
||
* s.connect Socket.pack_sockaddr_in(80, 'example.com')
|
||
*
|
||
* # Using TCPSocket
|