---
name: "MR::IProto::Cluster::Server"
section: "3pm"
platform: "linux"
package: "libmr-tarantool-perl"
version: "0.0.24-2"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/MR::IProto::Cluster::Server"
---

# MR::IProto::Cluster::Server(3pm)

server

## NAME

MR::IProto::Cluster::Server - server

## DESCRIPTION

This class is used to implement all communication with one server.

## ATTRIBUTES

- host

  Host name or IP address.

- port

  Port number.

- weight

  Server weight.

- connect\_timeout

  Timeout of connect operation.

- timeout

  Timeout of read and write operations.

- tcp\_nodelay

  Enable TCP\_NODELAY.

- tcp\_keepalive

  Enable SO\_KEEPALIVE.

- max\_parallel

  Max amount of simultaneous request.

- active

  Is server used in balancing.

## PUBLIC METHODS

- disconnect\_all

  Class method used to disconnect all iproto-connections. Very useful in case of **fork()**.

## PROTECTED METHODS

- \_send\_started( $sync, $message, $data )

  This method is called when message is started to send.

- \_recv\_finished( $sync, $message, $data, $error )

  This method is called when message is received.

## SEE ALSO

MR::IProto, MR::IProto::Cluster.
