Changes between Version 65 and Version 66 of RepyV2API

Changes between Version 65 and Version 66 of RepyV2API

Please note that these Trac pages are no longer being updated. Wiki contents/documentation have moved to GitHub.

Changes between Version 65 and Version 66 of RepyV2API

Please note that these Trac pages are no longer being updated. Wiki contents/documentation have moved to GitHub.

Changes between Version 65 and Version 66 of RepyV2API

Show
Ignore:
Timestamp:
12/28/09 13:07:02 (10 years ago)
Author:
justinc
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • RepyV2API

    v65 v66  
    234234 
    235235[[BR]] 
    236 ==== sendmessage(desthost, destport, message, localip, localport) ==== 
     236==== sendmessage(destip, destport, message, localip, localport) ==== 
    237237---- 
    238238 
     
    250250 
    251251   <Arguments> 
    252       desthost: 
    253          The host to send a message to 
     252      destip: 
     253         The IP to send a message to 
    254254      destport: 
    255255         The port to send the message to 
    256256      message: 
    257257         The message to send 
    258       localhost: 
     258      localip: 
    259259         The local IP to send the message from  
    260260      localport: 
     
    282282==== listenformessage(localip, localport) ====  
    283283----  
    284 Binds to a IP and port and waits for incoming UDP messages.  If this function is called multiple times on the same ip and port without the first udpserversocket being closed, the second call with have an exception.  These ports are separate from the connection ports and so both a message and connection listener can use the same port. 
     284Binds to a IP and port and waits for incoming UDP messages.  If this function is called multiple times on the same ip and port without the first udpserversocket being closed, the second call with have an exception.  These ports are separate from the connection ports and so both a message and connection listener can use the same port.   This call will raise an exception if it would block. 
    285285 
    286286 
     
    297297   <Arguments>  
    298298      localip:  
    299         The local IP or hostname to register the handler on  
     299        The local IP to register the handler on  
    300300      localport:  
    301301         The port to listen on  
     
    312312      PortRestrictedException (descends ResourceException) if the port is restricted 
    313313 
     314      XXXException if the call would block 
    314315          
    315316   <Side Effects>  
     
    325326 
    326327[[BR]] 
    327 ==== openconnection(desthost, destport, localip, localport, timeout) ==== 
     328==== openconnection(destip, destport, localip, localport, timeout) ==== 
    328329---- 
    329330 
     
    338339 
    339340   <Arguments> 
    340       desthost: 
    341          The host to open communications with 
     341      destip: 
     342         The destination ip to open communications with 
    342343      destport: 
    343          The port to use for communication 
     344         The destination port to use for communication 
    344345      localip: 
    345346         The local ip to use for the communication 
     
    353354      AddressBindingError (descends NetworkError) if the localip isn't associated with the local system 
    354355 
    355       PortInUseException (descends NetworkError) if the localport is already used 
     356      PortInUseException (descends NetworkError) if the localport is already used.   '''This doesn't make sense.   The ports can overlap so long as the tuple (localip, localport, destip, destport) is unique.''' 
    356357 
    357358      PortRestrictedException (descends ResourceException) if the localport isn't allowed 
     
    382383==== listenforconnection(localip, localport) ====  
    383384----  
    384 Binds to a IP and port and waits for incoming TCP connections.  If this function is called multiple times on the same ip and port without the first tcpserversocket being closed, the second call with have an exception.  These ports are separate from the message ports and so both a message and connection listener can use the same port. 
     385Binds to a IP and port and waits for incoming TCP connections.  If this function is called multiple times on the same ip and port without the first tcpserversocket being closed, the second call with have an exception.  These ports are separate from the message ports and so both a message and connection listener can use the same port.   This call raises an exception instead of blocking. 
    385386 
    386387* Doc string:  
     
    391392   <Arguments>  
    392393      localip:  
    393         The local IP or hostname to register the handler on  
     394        The local IP to listen on  
    394395      localport:  
    395396         The port to listen on  
     
    406407      AddressBindingError (descends NetworkError) if the IP address isn't a local IP. 
    407408 
     409      XXXException if the call would block 
    408410          
    409411   <Side Effects>