Socket.bind() not available with jruby
--------------------------------------

                 Key: JRUBY-4232
                 URL: http://jira.codehaus.org/browse/JRUBY-4232
             Project: JRuby
          Issue Type: Bug
          Components: Ruby 1.8.7
    Affects Versions: JRuby 1.4
         Environment: JRuby 1.4.0
            Reporter: Vivek Pandey


I can execute the following code using MRI Ruby but running on JRuby 1.4.0 (or 
even 1.3.1) gives

sock.rb:5: undefined method `bind' for #<Socket:0x10b914b3> (NoMethodError)

require 'socket'
include Socket::Constants
socket = Socket.new( AF_INET, SOCK_STREAM, 0 )
sockaddr = Socket.pack_sockaddr_in( 2200, '127.0.0.1' )
socket.bind( sockaddr )


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
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