| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
| |
(sockopt_inspect): use inspect_errno for SO_ERROR.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22507 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
|
| |
|
|
|
|
|
|
| |
* ext/socket/init.c (s_accept_nonblock): ditto, and EPROTO depends
on platforms.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22504 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
|
| |
|
|
| |
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22499 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
|
| |
|
|
|
|
|
| |
well.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22492 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
|
| |
|
|
|
|
|
| |
overflow.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22491 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
|
| |
|
|
|
|
|
| |
discard_cmsg_resource when EMFILE.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22488 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
|
| |
|
|
|
|
|
| |
hit the file descriptor limit.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22487 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
waited after nonblocking error.
(rb_io_write_nonblock): ditto.
* ext/socket/init.c (s_recvfrom_nonblock): ditto.
(s_accept_nonblock): ditto.
* ext/socket/socket.c (sock_connect_nonblock): ditto.
* ext/socket/ancdata.c (bsock_sendmsg_internal): ditto.
(bsock_recvmsg_internal): ditto.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22486 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
|
| |
|
|
|
|
|
| |
earlier.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22480 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
|
| |
|
|
| |
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22475 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
|
| |
|
|
|
|
|
|
| |
bigger than msg_controllen.
freeze unix_rights array.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22454 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
|
| |
|
|
| |
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22453 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
|
| |
|
|
| |
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22452 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
|
| |
|
|
| |
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22427 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
|
| |
|
|
|
|
|
|
|
|
| |
(make_io_for_rights): new function to allocate
IOs for FDs in SCM_RIGHTS message.
(bsock_recvmsg_internal): use make_io_for_rights. So the FDs can be
closed by GC.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22426 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
|
| |
|
|
|
|
|
|
|
| |
file descriptors in control message.
(bsock_recvmsg_internal): call discard_cmsg_resource before retrying
recvmsg.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22420 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
|
| |
|
|
| |
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22403 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
|
| |
|
|
| |
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22402 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
|
| |
|
|
|
|
|
| |
environments which have no control message.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22401 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
|
| |
|
|
| |
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22385 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
|
| |
|
|
| |
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22380 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
|
| |
|
|
|
|
|
|
| |
removing only on NetBSD.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22376 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
|
| |
|
|
| |
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22374 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
|
| |
|
|
|
|
|
| |
last padding of control messages, basically.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22373 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
rdoc.
* ext/.document: add socket/constdefs.c.
* ext/socket/constants.c (sock_define_const): removed.
(sock_define_uconst): ditto.
(rb_mSockConst): new static variable.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22361 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
|
| |
|
|
|
|
|
|
| |
the last padding to prevent sendmsg failure in test_udp_server in
test/socket/test_socket.rb.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22359 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
|
| |
|
|
|
|
|
| |
warning.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22296 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
|
| |
|
|
| |
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22294 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
|
| |
|
|
| |
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22293 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
|
| |
|
|
| |
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22292 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
|
| |
|
|
|
|
|
| |
UNIXServer#listen here for rdoc.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22289 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
|
| |
|
|
| |
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22288 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
|
| |
|
|
| |
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22287 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
|
| |
|
|
|
|
|
|
|
|
|
|
| |
using getpeerucred.
* ext/socket/extconf.rb: check ucred.h and getpeerucred.
* ext/socket/rubysocket.h: include ucred.h if available.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22256 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
|
| |
|
|
| |
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22239 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
|
| |
|
|
|
|
|
|
|
| |
if given. close the sockets when the block exits.
(Socket.udp_server_loop): use udp_server_sockets in block form.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22238 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
|
| |
|
|
|
|
|
|
|
| |
if given. close the sockets when the block exits.
(Socket.tcp_server_loop): use tcp_server_sockets in block form.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22237 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
|
| |
|
|
| |
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22236 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
|
| |
|
|
|
|
|
|
| |
unix_server_socket with a block.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22235 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
|
| |
|
|
|
|
|
|
| |
socket when the block exits.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22234 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
|
| |
|
|
|
|
|
|
| |
if given. remove the socket file when the block exits.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22233 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
|
| |
|
|
|
|
|
|
| |
optional.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22232 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
success. 0 on failure.
(anc_inspect_passcred_credentials): ditto.
(anc_inspect_socket_creds): ditto.
(anc_inspect_socket_creds): ditto.
(anc_inspect_socket_creds): ditto.
(anc_inspect_ip_recvdstaddr): ditto.
(anc_inspect_ip_pktinfo): ditto.
(anc_inspect_ipv6_pktinfo): ditto.
(ancillary_inspect): check family.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22228 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
|
| |
|
|
| |
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22226 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
|
| |
|
|
|
|
|
|
|
| |
succinct.
(Init_ancdata): fix number of arguments.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22223 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
|
| |
|
|
| |
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22222 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
|
| |
|
|
|
|
|
|
| |
* ext/socket/basicsocket.c (bsock_getpeereid): new method.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22219 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
|
| |
|
|
|
|
|
| |
name.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22218 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
|
| |
|
|
|
|
|
|
| |
* ext/socket/raddrinfo.c (make_ipaddr): local variable renamed.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22215 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
sockaddr_storage.
(recvfrom_blocking): follow struct recvfrom_arg change.
(s_recvfrom): ditto.
(s_recvfrom_nonblock): use struct sockaddr_storage.
* ext/socket/socket.c (sock_accept): use struct sockaddr_storage.
(sock_accept_nonblock): ditto.
(sock_sysaccept): ditto.
* ext/socket/ancdata.c (bsock_recvmsg_internal): use struct
sockaddr_storage.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22214 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
|