Project

General

Profile

Bug #7105 ยป 0001-Fix-typo-in-Socket-docs.patch

davidbalbert (David Albert), 10/04/2012 06:55 AM

View differences:

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
    (1-1/1)