mirror of
https://github.com/justinethier/cyclone.git
synced 2025-05-19 05:39:17 +02:00
132 lines
2.2 KiB
Markdown
132 lines
2.2 KiB
Markdown
# SRFI 106 - Basic socket interface
|
|
|
|
The `(srfi 106)` library provides a basic socket interface.
|
|
|
|
See the [SRFI document](http://srfi.schemers.org/srfi-106/srfi-106.html) for more information.
|
|
|
|
## Constructors and predicate
|
|
[`make-client-socket`](#make-client-socket)
|
|
[`make-server-socket`](#make-server-socket)
|
|
[`socket?`](#socket)
|
|
|
|
## Socket operations
|
|
[`socket-accept`](#socket-accept)
|
|
[`socket-send`](#socket-send)
|
|
[`socket-recv`](#socket-recv)
|
|
[`socket-shutdown`](#socket-shutdown)
|
|
[`socket-close`](#socket-close)
|
|
|
|
## Port conversion
|
|
[`socket-input-port`](#socket-input-port)
|
|
[`socket-output-port`](#socket-output-port)
|
|
|
|
## Control feature
|
|
[`call-with-socket`](#call-with-socket)
|
|
|
|
## Flag operations
|
|
[`address-family`](#address-family)
|
|
[`address-info`](#address-info)
|
|
[`socket-domain`](#socket-domain)
|
|
[`ip-protocol`](#ip-protocol)
|
|
[`message-type`](#message-type)
|
|
[`shutdown-method`](#shutdown-method)
|
|
[`socket-merge-flags`](#socket-merge-flags)
|
|
[`socket-purge-flags`](#socket-purge-flags)
|
|
|
|
## Constant values
|
|
[`*af-unspec*`](#af-unspec)
|
|
[`*af-inet*`](#af-inet)
|
|
[`*af-inet6*`](#af-inet6)
|
|
[`*sock-stream*`](#sock-stream)
|
|
[`*sock-dgram*`](#sock-dgram)
|
|
[`*ai-canonname*`](#ai-canonname)
|
|
[`*ai-numerichost*`](#ai-numerichost)
|
|
[`*ai-v4mapped*`](#ai-v4mapped)
|
|
[`*ai-all*`](#ai-all)
|
|
[`*ai-addrconfig*`](#ai-addrconfig)
|
|
[`*ipproto-ip*`](#ipproto-ip)
|
|
[`*ipproto-tcp*`](#ipproto-tcp)
|
|
[`*ipproto-udp*`](#ipproto-udp)
|
|
[`*msg-peek*`](#msg-peek)
|
|
[`*msg-oob*`](#msg-oob)
|
|
[`*msg-waitall*`](#msg-waitall)
|
|
[`*shut-rd*`](#shut-rd)
|
|
[`*shut-wr*`](#shut-wr)
|
|
[`*shut-rdwr*`](#shut-rdwr)
|
|
|
|
# make-client-socket
|
|
|
|
# make-server-socket
|
|
|
|
# socket?
|
|
|
|
# socket-accept
|
|
|
|
# socket-send
|
|
|
|
# socket-recv
|
|
|
|
# socket-shutdown
|
|
|
|
# socket-close
|
|
|
|
# socket-input-port
|
|
|
|
# socket-output-port
|
|
|
|
# call-with-socket
|
|
|
|
# address-family
|
|
|
|
# address-info
|
|
|
|
# socket-domain
|
|
|
|
# ip-protocol
|
|
|
|
# message-type
|
|
|
|
# shutdown-method
|
|
|
|
# socket-merge-flags
|
|
|
|
# socket-purge-flags
|
|
|
|
# \*af-unspec\*
|
|
|
|
# \*af-inet\*
|
|
|
|
# \*af-inet6\*
|
|
|
|
# \*sock-stream\*
|
|
|
|
# \*sock-dgram\*
|
|
|
|
# \*ai-canonname\*
|
|
|
|
# \*ai-numerichost\*
|
|
|
|
# \*ai-v4mapped\*
|
|
|
|
# \*ai-all\*
|
|
|
|
# \*ai-addrconfig\*
|
|
|
|
# \*ipproto-ip\*
|
|
|
|
# \*ipproto-tcp\*
|
|
|
|
# \*ipproto-udp\*
|
|
|
|
# \*msg-peek\*
|
|
|
|
# \*msg-oob\*
|
|
|
|
# \*msg-waitall\*
|
|
|
|
# \*shut-rd\*
|
|
|
|
# \*shut-wr\*
|
|
|
|
# \*shut-rdwr\*
|
|
|