Below is the list of pages for this tag.

Driving libzip with CFFI

Published , updated

NOTE: This post is a little dated, as it does not make use of features in newer releases.

There is a huge number of C libraries that provide functionality that would be very useful in an application. One way to access this functionality from Tcl is to write a binding using Tcl's C API. This requires fairly detailed knowledge of both C as well as Tcl's API. An alternative is to use a Foreign Function Interface extension for Tcl such as cffi or Ffidl.

(read more)

Using TLS connections from Tcl

Published

The use of the Transport Layer Security (TLS, formerly known as SSL) is becoming increasingly prevalent to secure network communication, particularly with the browser and search companies pushing web sites to move to HTTPS instead of HTTP. This post discusses the options for using TLS over Tcl sockets and specifically some important potential pitfalls to keep in mind with respect to certificate validation. The discussion is limited to client-side operation.

(read more ...)

Introducing Tcl 8.7 Part 12: Creating ZIP archives

Published

This is the twelfth in a series of posts about new features in the upcoming version 8.7 of Tcl. The prior post in the series covered mounting of ZIP archives as Tcl virtual file systems, their introspection and using file I/O commands to read and write to files within the archive. This short post concerns itself with utility commands for creating ZIP file archives.

(read more ...)

Introducing Tcl 8.7 Part 11: The ZIP virtual file system

Published

This is the eleventh in a series of posts about new features in the upcoming version 8.7 of Tcl. It is the first of a pair of posts describing core support for treating ZIP archives as virtual file systems within Tcl. This post focuses on base operations dealing with existing ZIP archives. The next describes the creation of ZIP archives and their use for building zipkits and single file executables.

(read more ...)

Push files to your mobile using Tcl

Published

In my previous post, I described how to connect to Bluetooth devices from Tcl. That however only went as far as discovering devices and establishing network connections and left unanswered the question of what you do next once a connection is established. This post, and succeeding ones, will build on that by showing how you can transfer files, contact information etc. to Bluetooth devices from Windows using the OBEX protocol.

(read more ...)