Changeset 173

Show
Ignore:
Timestamp:
06/02/06 10:32:17 (3 years ago)
Author:
blackhedd
Message:

added a wrapper for get_peername, and some provisional domcumentation.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • version_0/lib/eventmachine.rb

    r168 r173  
    806806 
    807807 
     808  # #get_peername is used with stream-connections to obtain the identity 
     809  # of the remotely-connected peer. If a peername is available, this method 
     810  # returns a sockaddr structure. The method returns nil if no peername is available. 
     811  # You can use Socket#unpack_sockaddr_in and its variants to obtain the 
     812  # values contained in the peername structure returned from #get_peername. 
     813  def get_peername 
     814    EventMachine::get_peername @signature 
     815  end 
     816 
    808817end 
    809818