resetAll

Closes all open sockets and halts all pending Internet operations.

# Metadata

Platforms: desktop, server OS: mac, windows, linux Introduced: 1.1 Security: network

# Syntax

resetAll

# Examples

if the openSockets is not empty then resetAll

# Description

Use the resetAll command to troubleshoot Internet connection problems.

The resetAll command closes all open sockets, including any sockets that have been opened by the Internet library; clears all variables used by the Internet library; and clears all cached data.

Since the Internet library's routines for handling http and ftp uploads and downloads are socket -based, the resetAll command resets all these operations.

>*Warning:* The resetAll command closes all open sockets, > which includes any other sockets opened by your application > and any sockets in use for other uploads and > downloads. Because of this, you should avoid routine use of > the resetAll command. Consider using it only during development, > to clear up connection problems during debug.

>*Important:* The resetAll command is part of the > Internet library. To ensure that the command works in a > standalone application, you must include this > LiveCode custom library when you create your > standalone application. In the Inclusions pane of the > Standalone Application Settings window, make sure the "Internet" > script library is selected.

# Tags

# See