# danog\MadelineProto\Settings\RPC: RPC settings.

[Back to index](../../../index.html)

> Author: Daniil Gentili <daniil@daniil.it>  
  

RPC settings.  




## Method list:
* [`getRpcDropTimeout(): int`](#getRpcDropTimeout)
* [`setRpcDropTimeout(int $rpcDropTimeout): \danog\MadelineProto\Settings\RPC`](#setRpcDropTimeout)
* [`getRpcResendTimeout(): int`](#getRpcResendTimeout)
* [`setRpcResendTimeout(int $rpcResendTimeout): \danog\MadelineProto\Settings\RPC`](#setRpcResendTimeout)
* [`getFloodTimeout(): int`](#getFloodTimeout)
* [`setFloodTimeout(int $floodTimeout): \danog\MadelineProto\Settings\RPC`](#setFloodTimeout)
* [`getGzipEncodeIfGt(): int`](#getGzipEncodeIfGt)
* [`setGzipEncodeIfGt(int $gzipEncodeIfGt): \danog\MadelineProto\Settings\RPC`](#setGzipEncodeIfGt)

## Methods:
### <a name="getRpcDropTimeout"></a> `getRpcDropTimeout(): int`

Get RPC drop timeout.



### <a name="setRpcDropTimeout"></a> `setRpcDropTimeout(int $rpcDropTimeout): \danog\MadelineProto\Settings\RPC`

Set RPC drop timeout.


Parameters:

* `$rpcDropTimeout`: `int` RPC timeout  



### <a name="getRpcResendTimeout"></a> `getRpcResendTimeout(): int`

Get RPC resend timeout.



### <a name="setRpcResendTimeout"></a> `setRpcResendTimeout(int $rpcResendTimeout): \danog\MadelineProto\Settings\RPC`

Set RPC resend timeout.


Parameters:

* `$rpcResendTimeout`: `int` RPC timeout.  



### <a name="getFloodTimeout"></a> `getFloodTimeout(): int`

Get flood timeout: if FLOOD_WAIT_ time is bigger than this, throw exception instead of waiting asynchronously.



### <a name="setFloodTimeout"></a> `setFloodTimeout(int $floodTimeout): \danog\MadelineProto\Settings\RPC`

Set flood timeout: if FLOOD_WAIT_ time is bigger than this, throw exception instead of waiting asynchronously.
  
Must be bigger than 5.  


Parameters:

* `$floodTimeout`: `int` Flood timeout: if FLOOD_WAIT_ time is bigger than this, throw exception instead of waiting asynchronously  



### <a name="getGzipEncodeIfGt"></a> `getGzipEncodeIfGt(): int`

Get encode payload with GZIP if bigger than.



### <a name="setGzipEncodeIfGt"></a> `setGzipEncodeIfGt(int $gzipEncodeIfGt): \danog\MadelineProto\Settings\RPC`

Set encode payload with GZIP if bigger than.


Parameters:

* `$gzipEncodeIfGt`: `int` Encode payload with GZIP if bigger than  



---
Generated by [danog/phpdoc](https://phpdoc.daniil.it)
