Changes between Version 1 and Version 2 of NetworkEndpointsCowan


Ignore:
Timestamp:
10/30/13 14:33:16 (4 years ago)
Author:
cowan
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • NetworkEndpointsCowan

    v1 v2  
    1717Note that appropriate values may refer to broadcast or multicast addresses. 
    1818 
    19 ''Port'' can be a positive exact integer or a string.  The meaning of a string is implementation-dependent, but is intended to be a standardized service name. 
     19''Network-port'' can be a positive exact integer or a string.  The meaning of a string is implementation-dependent, but is intended to be a standardized service name.  Note that these ports are not Scheme ports. 
    2020 
    2121== Procedures == 
    2222 
    23 `(make-network-endpoint `[''host'']` `[''port'']`)` 
     23`(make-network-endpoint `[''host'']` `[''network-port'']`)` 
    2424 
    25 Returns a newly allocated network endpoint.  If ''port'' is omitted or 0, then it is an error unless ''host'' refers to the local host, and the endpoint specifies an unused port to be assigned by the operating system.  If ''port'' is present but ''local-address'' is omitted or has the value `#t`, the endpoint specifies the given port on the local host accessed by any address.  Otherwise, the endpoint specifies a particular host and port.  If there is just one argument, it is ''port'', as this is the more common case. 
     25Returns a newly allocated network endpoint.  If ''network-port'' is omitted or 0, then it is an error unless ''host'' refers to the local host, and the endpoint specifies an unused port to be assigned by the operating system.  If ''network-port'' is present but ''local-address'' is omitted or has the value `#t`, the endpoint specifies the given port on the local host accessed by any address.  Otherwise, the endpoint specifies a particular host and port.  If there is just one argument, it is ''network-port'', as this is the more common case. 
    2626 
    2727`(network-endpoint? `''obj''`)` 
     
    4343`(network-endpoint-port `''endpoint''`)` 
    4444 
    45 Returns the port number specified by ''endpoint'' as a number.  The value returned need not be the same as the value passed to `make-network-endpoint`, but must be acceptable to another invocation of `make-network-endpoint`. 
     45Returns the network port specified by ''endpoint'' as a number.  The value returned need not be the same as the value passed to `make-network-endpoint`, but must be acceptable to another invocation of `make-network-endpoint`. 
    4646