TCP "Client" example in Clojure! [closed]
Asked Answered
W

2

8

I am trying to use a TCP socket to communicate a shared state between a server and a bunch of clients. I am using "Server-Socket" from clojure.contrib for the server. That works pretty well and I can communicate with the server with other tools.

I am having a rather hard time finding good examples for client-side socket use in Clojure.

I actually "print" and "read-stirng" the state vector back and forth.

What is the "Clojure" way to do do the client side?

Willard answered 11/1, 2011 at 1:10 Comment(0)
W
1

I found "saturine" very useful https://github.com/texodus/saturnine

Saturnine is a Clojure library designed to facilitate rapid development of asynchronous network applications. It is built on top of JBoss Netty, and inherits a number of features from this framework, but is designed with simplicity in mind.

Willard answered 3/3, 2011 at 1:12 Comment(0)
V
6

Maybe the "Simple Clojure IRC Client" will be of help?

Verbify answered 11/1, 2011 at 17:28 Comment(0)
W
1

I found "saturine" very useful https://github.com/texodus/saturnine

Saturnine is a Clojure library designed to facilitate rapid development of asynchronous network applications. It is built on top of JBoss Netty, and inherits a number of features from this framework, but is designed with simplicity in mind.

Willard answered 3/3, 2011 at 1:12 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.