Previous: , Up: srfi basic-socket spec   [Index]


2.34.3.7 Constants

Implementations must support following constant variables. All constant variable must be consistent with POSIX’s[1] definition. The following bindings are exported by the libraries (srfi :106) and (srfi :106 socket).

Address family

*af-inet*

Internet domain sockets for use with IPv4 addresses. This must behave the same as POSIX’s AF_INET.

*af-inet6*

Internet domain sockets for use with IPv6 addresses. This must behave the same as POSIX’s AF_INET6.

*af-unspec*

Unspecified. This must behave the same as POSIX’s AF_UNSPEC.

Socket domain

*sock-stream*

Byte–stream socket. This must behave the same as POSIX’s SOCK_STREAM.

*sock-dgram*

Datagram socket. This must behave the same as POSIX’s SOCK_DGRAM.

Address info

*ai-canonname*

This must behave the same as POSIX’s AI_CANONNAME.

*ai-numerichost*

This must behave the same as POSIX’s AI_NUMERICHOST.

*ai-v4mapped*

This must behave the same as POSIX’s AI_V4MAPPED.

*ai-all*

This must behave the same as POSIX’s AI_ALL.

*ai-addrconfig*

This must behave the same as POSIX’s AI_ADDRCONFIG.

IP protocol

*ipproto-ip*

Internet protocol. This must behave the same as POSIX’s IPPROTO_IP.

*ipproto-tcp*

Transmission control protocol. This must behave the same as POSIX’s IPPROTO_TCP.

*ipproto-udp*

User datagram protocol. This must behave the same as POSIX’s IPPROTO_UDP.

Message type

*msg-peek*

For socket-recv. Peeks at an incoming message. The data is treated as unread and the next socket-recv shall still return this data. This must behave the same as POSIX’s MSG_PEEK.

*msg-oob*

For both socket-recv and socket-send. Requests/sends out–of–band data. This must behave the same as POSIX’s MSG_OOB.

*msg-waitall*

For socket-recv. On sockets created with *sock-stream* flag, this requests the procedure block until the full amount of data ban be returned. This must behave the same as POSIX’s MSG_WAITALL.

Shutdown method

*shut-rd*

Disables further receive operation. This must behave the same as POSIX’s SHUT_RD.

*shut-wr*

Disables further send operations. This must behave the same as POSIX’s SHUT_WR.

*shut-rdwr*

Disables further send and receive operations. This must behave the same as POSIX’s SHUT_RDWR.


Previous: , Up: srfi basic-socket spec   [Index]