.Varlen R/O Property

Top  Previous  Next

Function:

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

Type:

Word | dword

Value Range:

platform-dependent, default= 0

See Also:

Working with HTTP Variables, sock.gethttprqstring(), on_sock_postdata

 


Details

The VAR buffer is only required when you plan to use this socket in the HTTP mode- see sock.httpmode property, also sock.httpportlist.

Working with HTTP Variables explains how the build-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.