Anatomy of a Socket

A socket is composed of a send/receive logic that actually handles UDP and TCP (including HTTP) communications, as well as six buffers.

The sock. object contains properties, methods, and events that relate both to the buffers and the send/receive logic.

The buffers available are:


Starting with TiOS V4, there is also a group of TLS-related buffers. TLS stands for "transport layer security" — it is the standard way of performing encrypted data communications over the Internet. Since only a single socket can be engaged in encrypted communications at any given time, this group of TLS buffers is assigned to whichever socket is designated to use TLS.