.varlen R/O Property


For the selected socket (selection is made through sock.num), returns the total number of bytes currently waiting in the VAR buffer to be extracted and processed by your application.


Word | dword

Value Range:

Platform-dependent, default = 0

See Also:

Working With HTTP Variables, sock.gethttprqstring, on_sock_postdata


The VAR buffer is only required when you plan to use this socket in the HTTP mode — see the sock.httpmode and sock.httpportlist properties.

Working With HTTP Variables explains how the built-in HTTP server works, and how the VAR buffer is used to receive HTTP variables.

Older devices had smaller RAM sizes, so the value returned by this property was of the word type. On newer devices with larger RAM capacities, this property has the dword type. Inspect the property's declaration on the platform you are using to make sure you know its type.

.varlen R/O Property