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:
addr = Socket.getaddrinfo("localhost", nil, Socket::AF_INET)
sock = Socket.new(Socket.const_get(addr), Socket::SOCK_STREAM, 0)
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.)