mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* ext/socket/socket.c: fix errors in socket sample code.
[ruby-core:09992] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11552 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
0fe77cd26b
commit
06720d45c7
3 changed files with 10 additions and 5 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
Mon Jan 22 14:57:25 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||||
|
|
||||||
|
* ext/socket/socket.c: fix errors in socket sample code.
|
||||||
|
[ruby-core:09992]
|
||||||
|
|
||||||
Sat Jan 20 21:05:18 2007 Masaki Suketa <masaki.suketa@nifty.ne.jp>
|
Sat Jan 20 21:05:18 2007 Masaki Suketa <masaki.suketa@nifty.ne.jp>
|
||||||
|
|
||||||
* ext/win32ole/win32ole.c (fole_s_set_code_page): WIN32OLE.codepage=
|
* ext/win32ole/win32ole.c (fole_s_set_code_page): WIN32OLE.codepage=
|
||||||
|
|
|
@ -2893,7 +2893,7 @@ sock_accept(VALUE sock)
|
||||||
* IO.select([socket])
|
* IO.select([socket])
|
||||||
* retry
|
* retry
|
||||||
* end
|
* end
|
||||||
* puts "The client said, '#{socket.readline.chomp}'"
|
* puts "The client said, '#{client_socket.readline.chomp}'"
|
||||||
* client_socket.puts "Hello from script one!"
|
* client_socket.puts "Hello from script one!"
|
||||||
* socket.close
|
* socket.close
|
||||||
*
|
*
|
||||||
|
@ -2947,8 +2947,8 @@ sock_accept_nonblock(VALUE sock)
|
||||||
* socket.bind( sockaddr )
|
* socket.bind( sockaddr )
|
||||||
* socket.listen( 5 )
|
* socket.listen( 5 )
|
||||||
* client_fd, client_sockaddr = socket.sysaccept
|
* client_fd, client_sockaddr = socket.sysaccept
|
||||||
* puts "The client said, '#{socket.readline.chomp}'"
|
|
||||||
* client_socket = Socket.for_fd( client_fd )
|
* client_socket = Socket.for_fd( client_fd )
|
||||||
|
* puts "The client said, '#{client_socket.readline.chomp}'"
|
||||||
* client_socket.puts "Hello from script one!"
|
* client_socket.puts "Hello from script one!"
|
||||||
* socket.close
|
* socket.close
|
||||||
*
|
*
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
#define RUBY_VERSION "1.9.0"
|
#define RUBY_VERSION "1.9.0"
|
||||||
#define RUBY_RELEASE_DATE "2007-01-20"
|
#define RUBY_RELEASE_DATE "2007-01-22"
|
||||||
#define RUBY_VERSION_CODE 190
|
#define RUBY_VERSION_CODE 190
|
||||||
#define RUBY_RELEASE_CODE 20070120
|
#define RUBY_RELEASE_CODE 20070122
|
||||||
#define RUBY_PATCHLEVEL 0
|
#define RUBY_PATCHLEVEL 0
|
||||||
|
|
||||||
#define RUBY_VERSION_MAJOR 1
|
#define RUBY_VERSION_MAJOR 1
|
||||||
|
@ -9,7 +9,7 @@
|
||||||
#define RUBY_VERSION_TEENY 0
|
#define RUBY_VERSION_TEENY 0
|
||||||
#define RUBY_RELEASE_YEAR 2007
|
#define RUBY_RELEASE_YEAR 2007
|
||||||
#define RUBY_RELEASE_MONTH 1
|
#define RUBY_RELEASE_MONTH 1
|
||||||
#define RUBY_RELEASE_DAY 20
|
#define RUBY_RELEASE_DAY 22
|
||||||
|
|
||||||
RUBY_EXTERN const char ruby_version[];
|
RUBY_EXTERN const char ruby_version[];
|
||||||
RUBY_EXTERN const char ruby_release_date[];
|
RUBY_EXTERN const char ruby_release_date[];
|
||||||
|
|
Loading…
Reference in a new issue