LDAP.SetNetworkTimeOut
----------------------

Sets network timeout value.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [LDAP](component_LDAP.md) | [6.0](newinversion60.md) | ✅ Yes | ❌ No | ✅ Yes | ✅ Yes, on macOS and Linux | ❌ No |

MBS( "LDAP.SetNetworkTimeOut"; LDAPRef; TimeOut ) 

**MBS**( **"LDAP.SetNetworkTimeOut";** /\* Sets network timeout value. \*/  
**$LDAPRef**; /\* The reference number for the LDAP connection.e.g. $ldap \*/   
**$TimeOut**) /\* The new timeout in seconds.e.g. 5 \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| LDAPRef | The reference number for the LDAP connection. | $ldap |
| TimeOut | The new timeout in seconds. | 5 |

### Result

Returns OK or error.

### Description

Sets network timeout value.  
This function sets the socket level timeout.  
Value is in seconds. Resolution is in microseconds.  
### Examples

Sets network timeout:

 Set Variable \[ $r ; Value: MBS ("LDAP.SetNetworkTimeOut"; $ldap ; 3) \]  
### See also

- [LDAP.GetNetworkTimeOut](LDAPGetNetworkTimeOut.md)

### Release notes

- **Version 9.2**
    - Fixed LDAP timeout functions [LDAP.GetNetworkTimeOut](http://www.mbsplugins.eu/LDAPGetNetworkTimeOut.shtml), [LDAP.GetTimeOut](http://www.mbsplugins.eu/LDAPGetTimeOut.shtml), [LDAP.SetNetworkTimeOut](http://www.mbsplugins.eu/LDAPSetNetworkTimeOut.shtml) and [LDAP.SetTimeOut](http://www.mbsplugins.eu/LDAPSetTimeOut.shtml).

### Blog Entries

- [MBS FileMaker Plugin, version 9.2pr1](https://www.mbsplugins.de/archive/2019-04-02/MBS_FileMaker_Plugin_version_9/monkeybreadsoftware_blog_filemaker)

This function checks for a license.

Created 18th December 2015 , last changed 16th December 2020

  
[LDAP.SetBinaryKeys](LDAPSetBinaryKeys.md) - [LDAP.SetProtocolVersion](LDAPSetProtocolVersion.md)

[HTML Version](LDAPSetNetworkTimeOut.shtml)