mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* ext/socket/init.c (socks_connect_blocking): moved from
sockssocket.c. [ruby-dev:37834] * sockssocket.c (socks_init): don't omit "int" type. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21804 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
9c29032c73
commit
2d958b7fb0
3 changed files with 17 additions and 10 deletions
|
@ -333,6 +333,15 @@ connect_blocking(void *data)
|
|||
return (VALUE)connect(arg->fd, arg->sockaddr, arg->len);
|
||||
}
|
||||
|
||||
#if defined(SOCKS) && !defined(SOCKS5)
|
||||
static VALUE
|
||||
socks_connect_blocking(void *data)
|
||||
{
|
||||
struct connect_arg *arg = data;
|
||||
return (VALUE)Rconnect(arg->fd, arg->sockaddr, arg->len);
|
||||
}
|
||||
#endif
|
||||
|
||||
int
|
||||
ruby_connect(int fd, const struct sockaddr *sockaddr, int len, int socks)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue