mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-05-09 15:10:29 +02:00
(Internet Socket Client, Internet Socket Server):
Correction to socket calls, should be PF_INET not AF_INET (though generally the two are the same value).
This commit is contained in:
parent
2b6dd3213f
commit
68b251586e
1 changed files with 2 additions and 2 deletions
|
@ -2448,7 +2448,7 @@ It connects to the HTTP daemon running on the local machine and
|
|||
returns the contents of the root index URL.
|
||||
|
||||
@example
|
||||
(let ((s (socket AF_INET SOCK_STREAM 0)))
|
||||
(let ((s (socket PF_INET SOCK_STREAM 0)))
|
||||
(connect s AF_INET (inet-aton "127.0.0.1") 80)
|
||||
(display "GET / HTTP/1.0\r\n\r\n" s)
|
||||
|
||||
|
@ -2468,7 +2468,7 @@ port 2904 for incoming connections and sends a greeting back to the
|
|||
client.
|
||||
|
||||
@example
|
||||
(let ((s (socket AF_INET SOCK_STREAM 0)))
|
||||
(let ((s (socket PF_INET SOCK_STREAM 0)))
|
||||
(setsockopt s SOL_SOCKET SO_REUSEADDR 1)
|
||||
;; Specific address?
|
||||
;; (bind s AF_INET (inet-aton "127.0.0.1") 2904)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue