Issue Type: Bug Bug
Affects Versions: JRuby 1.7.0.pre1
Assignee: Unassigned
Components: Core Classes/Modules
Created: 04/Jul/12 12:41 PM
Description:

In trying to make BERTRPC (https://github.com/mojombo/bertrpc) connections from JRuby, I stumbled on this exception:

NoMethodError: undefined method `recvfrom' for #<Socket:fd>

I don't know much about socket programming, unfortunately, but BERTRPC is doing something like this:

require "socket"
addr = Socket.getaddrinfo("localhost", nil, Socket::AF_INET)
sock = Socket.new(Socket.const_get(addr[0][0]), Socket::SOCK_STREAM, 0)
sock.connect(Socket.pack_sockaddr_in(8000, addr[0][3]))
sock.recvfrom(123)

On MRI, Socket#recvfrom exists, but on JRuby it does not.

Any help would be appreciated – I hope I'm missing something simple. (If there's a workaround I could apply to BERTRPC, that would help me a ton in the meantime.)

Environment: Mac OS X 10.7.4
Project: JRuby
Priority: Major Major
Reporter: Bryan Helmkamp
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira
--------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email

Reply via email to