Changeset 26917 in project


Ignore:
Timestamp:
06/18/12 22:01:49 (9 years ago)
Author:
Jim Ursetto
Message:

wiki/socket: update name-info for 0.2.1, fix old example typo

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wiki/eggref/4/socket

    r26127 r26917  
    227227
    228228The socket address object is usually constructed with {{inet-address}}
    229 or obtained from a socket call, e.g. {{socket-peer-name}}.
     229or obtained from a socket call, e.g. {{socket-peer-name}}.  As a
     230convenience in socket 0.2.1 and later, if {{SADDR}} is a string, it is
     231converted to a socket address object with {{(inet-address SADDR #f)}}.
    230232
    231233The behavior of {{name-information}} can be influenced by FLAGS.  FLAGS
     
    247249 (name-information (inet-address "::1" #f))
    248250   ; => ("localhost" . 0)
     251 (name-information "::1")
     252   ; => ("localhost" . 0)
    249253 (name-information (inet-address "::1" 80) ni/numerichost)
    250254   ; => ("::1" . "http")
    251255 (name-information (inet-address "::1" 80) (+ ni/numerichost ni/numericserv))
    252    ; => ("::1" . "http")
     256   ; => ("::1" . 80)
    253257 (name-information (inet-address "127.0.0.2" 80))
    254258   ; => ("127.0.0.2" . "http")
     
    912916=== Version history
    913917
     918; 0.2.1 : Treat string addr to {{name-information}} as {{(inet-address addr #f)}}
    914919; 0.2 : Add UNIX socket support; eliminate much dead code and runtime support checks.
    915920; 0.1 : Initial release for Chicken 4.
Note: See TracChangeset for help on using the changeset viewer.