source: EcnlProtoTool/trunk/mrbgems/mruby-socket/README.md@ 331

Last change on this file since 331 was 331, checked in by coas-nagasima, 6 years ago

prototoolに関連するプロジェクトをnewlibからmuslを使うよう変更・更新
ntshellをnewlibの下位の実装から、muslのsyscallの実装に変更・更新
以下のOSSをアップデート
・mruby-1.3.0
・musl-1.1.18
・onigmo-6.1.3
・tcc-0.9.27
以下のOSSを追加
・openssl-1.1.0e
・curl-7.57.0
・zlib-1.2.11
以下のmrbgemsを追加
・iij/mruby-digest
・iij/mruby-env
・iij/mruby-errno
・iij/mruby-iijson
・iij/mruby-ipaddr
・iij/mruby-mock
・iij/mruby-require
・iij/mruby-tls-openssl

File size: 1.8 KB
Line 
1mruby-socket
2============
3
4"mruby-socket" mrbgem provides BSD socket interface for mruby.
5API is compatible with CRuby's "socket" library.
6
7
8## Example
9```sh
10% vi kame.rb
11s = TCPSocket.open("www.kame.net", 80)
12s.write("GET / HTTP/1.0\r\n\r\n")
13puts s.read
14s.close
15
16% mruby kame.rb
17HTTP/1.1 200 OK
18Date: Tue, 21 May 2013 04:31:30 GMT
19...
20```
21
22## Requirement
23- [iij/mruby-io](https://github.com/iij/mruby-io) mrbgem
24- [iij/mruby-mtest](https://github.com/iij/mruby-mtest) mrgbem to run tests
25- system must have RFC3493 basic socket interface
26- and some POSIX API...
27
28## TODO
29- add missing methods
30- write more tests
31- fix possible descriptor leakage (see XXX comments)
32- `UNIXSocket#recv_io` `UNIXSocket#send_io`
33
34
35## License
36
37Copyright (c) 2013 Internet Initiative Japan Inc.
38
39Permission is hereby granted, free of charge, to any person obtaining a
40copy of this software and associated documentation files (the "Software"),
41to deal in the Software without restriction, including without limitation
42the rights to use, copy, modify, merge, publish, distribute, sublicense,
43and/or sell copies of the Software, and to permit persons to whom the
44Software is furnished to do so, subject to the following conditions:
45
46The above copyright notice and this permission notice shall be included in
47all copies or substantial portions of the Software.
48
49THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
50IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
51FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
52AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
53LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
54FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
55DEALINGS IN THE SOFTWARE.
Note: See TracBrowser for help on using the repository browser.