File: README.md

package info (click to toggle)
tcl-unix-sockets 0.5-3
  • links: PTS
  • area: main
  • in suites: forky, sid, trixie
  • size: 644 kB
  • sloc: ansic: 392; sh: 371; tcl: 40; makefile: 25
file content (33 lines) | stat: -rw-r--r-- 429 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
UNIX_SOCKETS
============

This package adds support for Unix domain sockets to Tcl.

Client
------

~~~tcl
package require unix_sockets

set chan    [unix_sockets::connect /tmp/.foo]
~~~

Server
------

~~~tcl
package require unix_sockets

proc accept chan {
    # As for socket channels
}

set listen  [unix_sockets::listen /tmp/.bar accept]

vwait ::forever
~~~

License
-------

Licensed under the same terms as the Tcl Core