Merge remote-tracking branch 'upstream/master'
commit
25ad4af3e4
|
@ -201,7 +201,7 @@ HELP: <datagram>
|
|||
"To create a datagram socket bound to a randomly-assigned port, set the port number in the address specifier to 0, and then read the " { $snippet "addr" } " slot of the datagram instance to obtain the actual port number it is bound to:"
|
||||
{ $code "f 0 <inet4> <datagram>" }
|
||||
"To accept UDP/IP packets from the loopback interface only, use an address specifier like the following:"
|
||||
{ $code "\"127.0.0.1\" 1234 <inet4> <datagram>s" }
|
||||
{ $code "\"127.0.0.1\" 1234 <inet4> <datagram>" }
|
||||
"Since " { $link resolve-host } " can return multiple address specifiers, your code must create a datagram socket for each one and co-ordinate packet sending accordingly."
|
||||
}
|
||||
{ $errors "Throws an error if the port is already in use, or if the OS forbids access." } ;
|
||||
|
|
Loading…
Reference in New Issue