summaryrefslogtreecommitdiffhomepage
path: root/mrbgems/mruby-socket/src
AgeCommit message (Collapse)Author
2018-08-11Fix misspelling words in commentsKazuhiro Sera
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-17Define `SOL_IP` and `SOL_TCP`; ref #3999Yukihiro "Matz" Matsumoto
2018-03-26Revert #3984 .Takeshi Watanabe
2018-03-25Merge commit '36d016afd663d34607c843d03371bedb71efa34e'Takeshi Watanabe
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-14Fix socket closing by using `closesocket` API in windows instead.Takeshi Watanabe
2017-12-13Use IPPROTO enum values on WinSock.Hiroshi Mimaki
2017-12-13Set protocol of AddrInfoHiroshi Mimaki
2017-12-12Winsock uses `int` where UNIX uses `size_t`.Yukihiro "Matz" Matsumoto
2017-12-12fix build on mingwYasuhiro Matsumoto
2017-12-12Winsock does not provide `ssize_t`; Use `int` instead.Yukihiro "Matz" Matsumoto
2017-12-11Reduce VC++ compiler warnings.Yukihiro "Matz" Matsumoto
2017-12-09Reduce VC++ compiler warnings.Yukihiro "Matz" Matsumoto
2017-12-08Reduce VC++ compiler warnings.Yukihiro "Matz" Matsumoto
2017-12-07Remove unused variable `usock` from `mruby-socket/src/socket.c`.Yukihiro "Matz" Matsumoto
2017-12-07fixup! Fix type casting errors when `mruby-socket` compiled by C++.Yukihiro "Matz" Matsumoto
2017-12-07Fix type casting errors when `mruby-socket` compiled by C++.Yukihiro "Matz" Matsumoto
Also `bool` is a reserved word in C++.
2017-12-07Add 'mrbgems/mruby-socket/' from commit ↵Yukihiro "Matz" Matsumoto
'ab54185005ec87fe4f5b10df95ad29659884141b' git-subtree-dir: mrbgems/mruby-socket git-subtree-mainline: d75266dd1bade53255044460a9cd74596addaa84 git-subtree-split: ab54185005ec87fe4f5b10df95ad29659884141b