[racket] First project
On Wed, Apr 11, 2012 at 7:08 AM, Neil Van Dyke <neil at neilvandyke.org> wrote:
> David Lind wrote at 04/11/2012 06:39 AM:
>
>> - creating a socket
>> - establishing a connection through the socket
>> - reading and writing the socket
>
> This is a tutorial on sockets programming in Racket:
> http://docs.racket-lang.org/more/
As Neil suggests, the "Systems Programming" tutorial should be helpful
in showing how to work with sockets in Racket. It's example-driven
and shows how to create port connections, read and write to them, and
finalize network resources to avoid leaks.
With regards to the documentation on sockets, you can see:
http://docs.racket-lang.org/reference/tcp.html
One of the common data types in Racket is the "port"; it's an abstract
data type that can be created from different sources (like files,
strings, network ports). So the content in:
http://docs.racket-lang.org/guide/i_o.html
http://docs.racket-lang.org/reference/ports.html
should also be helpful.