class EventMachine::Connection

def get_sockname

end
end
puts "got #{data.inspect}"
port, ip = Socket.unpack_sockaddr_in(get_sockname)
def receive_data data
module Handler

require 'socket'

@example

values contained in the local-name structure returned from this method.
You can use {Socket.unpack_sockaddr_in} and its variants to obtain the
returns a sockaddr structure. The method returns nil if no local name is available.
of the local side of the connection. If a local name is available, this method
Used with stream-connections to obtain the identity
def get_sockname
  EventMachine::get_sockname @signature
end