Net: PLT Networking Libraries

1`` | URLs and HTTP
2`` | URI Codec: Encoding and Decoding URIs
3`` | FTP: Client Downloading
4`` | Send URL: Opening a Web Browser
5`` | SMTP: Sending E-Mail
6`` | sendmail: Sending E-Mail
7`` | Headers: Parsing and Constructing
8`` | IMAP: Reading Mail
9`` | POP3: Reading Mail
10`` | MIME: Decoding Internet Data
11`` | Base 64: Encoding and Decoding
12`` | Quoted-Printable: Encoding and Decoding
13`` | DNS: Domain Name Service Queries
14`` | NNTP: Newsgroup Protocol
15`` | TCP: Unit and Signature
16`` | TCP Redirect: tcp^ via Channels
17`` | SSL Unit: tcp^ via SSL
18`` | CGI Scripts
19`` | Cookie: HTTP Client Storage
| Bibliography
| Index

On this page:

tcp-redirect

Version: 4.0.2
contents index
← prev up next →

### 16`` TCP Redirect: tcp^ via Channels

(require net/tcp-redirect)

The net/tcp-redirect library provides a function for directing some TCP port numbers to use buffered channels instead of the TCP support from scheme/tcp.

(tcp-redirect port-numbers) → unit?
port-numbers : (listof (integer-in 0 65535))

Returns a unit that implements tcp^. For port numbers not listed in port-numbers, the unit’s implementations are the scheme/tcp implementations.

For the port numbers listed in port-numbers and for connections to "127.0.0.1", the unit’s implementation does not use TCP connections, but instead uses internal buffered channels. Such channels behave exactly as TCP listeners and ports.

contents index
← prev up next →