# File lib/pr_eventmachine.rb, line 483
483:     def self.connect host, port
484:       sd = Socket.new( Socket::AF_INET, Socket::SOCK_STREAM, 0 )
485:       begin
486:         # TODO, this assumes a current Ruby snapshot.
487:         # We need to degrade to a nonblocking connect otherwise.
488:         sd.connect_nonblock( Socket.pack_sockaddr_in( port, host ))
489:       rescue Errno::EINPROGRESS
490:       end
491:       EvmaTCPClient.new sd
492:     end