summaryrefslogtreecommitdiffhomepage
path: root/mrbgems/mruby-socket
AgeCommit message (Collapse)Author
2020-04-03Helper for link window's libraryReckordp
2020-03-08Remove unnecessary 'stdio.h'; ref #4947dearblue
'stdio.h' is included in 'mruby.h' ('mrbconf.h'). However, keep 'stdio.h' used by mruby-test.
2020-03-08Increase flexibility of CrossBuildReckordp
2020-02-01Fix builds for old mingw in mruby-socket; ref #4914dearblue
2020-01-01Rename `mrb_num_args_error` to `mrb_argnum_error`; ref #4863Yukihiro "Matz" Matsumoto
2020-01-01Merge pull request #4863 from ↵Yukihiro "Matz" Matsumoto
shuujii/add-mrb_num_args_error-for-wrong-number-of-arguments-error Add `mrb_num_args_error()` for "wrong number of arguments" error
2019-12-12Add `mrb_num_args_error()` for "wrong number of arguments" errorKOBAYASHI Shuji
To unify the style of messages.
2019-12-09Add "mruby developers" into some gems; Resolve #4709dearblue
It is writing side by side with the original authors.
2019-09-26Use type predicate macros instead of `mrb_type` if possibleKOBAYASHI Shuji
For efficiency with `MRB_WORD_BOXING` (implement type predicate macros for all `enum mrb_vtype`).
2019-09-13Remove unnecessary files from `mruby-{io,pack,socket}`.Yukihiro "Matz" Matsumoto
2019-08-20Fix link of mruby-ioTakeshi Watanabe
2019-08-07Reorganize `mrb_string_value_cstr` and related functions.Yukihiro "Matz" Matsumoto
`mrb_string_value_cstr` and `mrb_string_value_len`: obsolete `mrb_string_cstr`: new function to retrieve NULL terminated C string `RSTRING_CSTR`: wrapper macro of `mrb_string_cstr`
2019-08-05Use new specifiers/modifiers of `mrb_vfromat()`KOBAYASHI Shuji
The binary sizes (gems are only `mruby-bin-mruby`) are reduced slightly in my environment than before the introduction of new specifiers/modifiers (5116789a) with this change. ------------+-------------------+-------------------+-------- BINARY | BEFORE (5116789a) | AFTER (This PR) | RATIO ------------+-------------------+-------------------+-------- mruby | 593416 bytes | 593208 bytes | -0.04% libmruby.a | 769048 bytes | 767264 bytes | -0.23% ------------+-------------------+-------------------+-------- BTW, I accidentally changed `tasks/toolchains/visualcpp.rake` at #4613, so I put it back.
2019-06-18Fix path of `error.h`.Hiroshi Mimaki
2019-05-06Avoid using `mrb_str_to_cstr` if possibleKOBAYASHI Shuji
Because it always allocate new string. Replace with the followings: - Use `RSRING_PTR` if string is guaranteed to be null-terminated. - Use `mrb_string_value_cstr` or `mrb_get_args("z")` if return value isn't modified.
2019-05-05Use `mrb_fixnum_to_str()` instead of `Fixnum#to_s`KOBAYASHI Shuji
2019-02-18Fix wrong assertion method in some testsKOBAYASHI Shuji
2018-11-22Fix mruby-socket test failure on MinGW.Hiroshi Mimaki
2018-09-01Avoid warning in MSVC compilation.Yukihiro "Matz" Matsumoto
2018-08-11Fix misspelling words in commentsKazuhiro Sera
2018-07-21Network services might not be availableSebastián Katzer
2018-06-15Fixed wrong usages of `mrb_raisef()`; ref #4043Yukihiro "Matz" Matsumoto
`mrb_raisef()` only takes `%S` specifier. If you don't have extra arguments, use `mrb_raise()`.
2018-06-14Resolve sign comparison warning; ref #4044Yukihiro "Matz" Matsumoto
2018-06-14sa_family_t is not defined on windows.Tomoyuki Sahara
2018-06-14set sockaddr_un.sun_len on the systems that have sockaddr.sa_len.Tomoyuki Sahara
If your system has sa_len but is not BSD-derived, define HAVE_SA_LEN=1 on mrbgem.rake or build_config.rb.
2018-06-14struct sockaddr_un can be truncated.Tomoyuki Sahara
When we have "struct sockaddr_un *s_un", we could not assume *s_un points to a memory region which size is at least sizeof(*s_un). Even worse, it may be shorter than sizeof(struct sockaddr) on some systems.
2018-06-14struct sockaddr_un can be shorter than struct sockaddr.Tomoyuki Sahara
ref: https://github.com/iij/mruby-socket/issues/45
2018-06-05Declare inet_ntop and inet_pton as static Sebastián Katzer
To avoid conflicts with multiple definitions of inet_ntop and inet_pton if compiled with # define _WIN32_WINNT _WIN32_WINNT_VISTA C:/mingw-w64/x86_64-7.2.0-posix-seh-rt_v5-rev1/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/7.2.0/../../../../x86_64-w64-mingw32/lib/../lib/libWs2_32.a(dghfs00169.o):(.text+0x0): multiple definition of `inet_pton' 722C:/projects/iss/mruby/build/host/lib/libmruby.a(socket.o):C:/projects/iss/mruby/mrbgems/mruby-socket/src/socket.c:80: first defined here define _WIN32_WINNT _WIN32_WINNT_VISTA
2018-04-18Avoid unnecessary object allocation (addrinfo) in `_accept`; ref #3999Yukihiro "Matz" Matsumoto
2018-04-17`Socket.accept` should have returned `[fd, addr]`; fix #3999Yukihiro "Matz" Matsumoto
2018-04-17Define `SOL_IP` and `SOL_TCP`; ref #3999Yukihiro "Matz" Matsumoto
2018-03-26Revert #3984 .Takeshi Watanabe
2018-03-25Merge commit '36d016afd663d34607c843d03371bedb71efa34e'Takeshi Watanabe
2018-02-03Depend mruby-io and mruby-pack in mruby coreMATSUMOTO, Ryosuke
2018-02-02Need `fcntl.h` and `sys/stat.h` as well for `_open`; ref #3938Yukihiro "Matz" Matsumoto
2018-02-02Need to include `io.h` anyway for _WIN32/64; ref #3938Yukihiro "Matz" Matsumoto
2018-01-31include io.h on mingwYasuhiro Matsumoto
2018-01-31Define compatibility only for `_MSC_VER`; ref #3923Yukihiro "Matz" Matsumoto
Suggested by @mattn.
2018-01-31Use mkstemp instead of tempnamksss
2017-12-26addrinfo.ai_protocol was not set on Cygwin.Hiroshi Mimaki
2017-12-26Disabled UNIXSocket test on CygwinHiroshi Mimaki
2017-12-14Merge pull request #3892 from mimaki/ipproto-winsockYukihiro "Matz" Matsumoto
Use IPPROTO enum values on WinSock.
2017-12-14Rename `BasicSocket#is_socket=` to `#_is_socket`; ref #3878Yukihiro "Matz" Matsumoto
2017-12-14Exclude `UNIXSocket` tests again; ref #3878Yukihiro "Matz" Matsumoto
2017-12-14Declare super class in socket.rb.Takeshi Watanabe
2017-12-14Fix socket closing by using `closesocket` API in windows instead.Takeshi Watanabe
2017-12-14Merge pull request #3893 from mimaki/add-mrbgem-summaryYukihiro "Matz" Matsumoto
Added mrbgem's summary.
2017-12-13Added mrbgem's summary.Hiroshi Mimaki
2017-12-13Use IPPROTO enum values on WinSock.Hiroshi Mimaki
2017-12-13Set protocol of AddrInfoHiroshi Mimaki