Returns the number of [[enet.peer | peers]] that are allocated for the given [[enet.host | host]]. This represents the maximum number of possible connections.
== Function ==
=== Synopsis ===
<source lang="lua">
host:peer_count()
</source>
=== Arguments ===
None.

=== Returns ===
{{param|number|limit|The maximum number of peers allowed.}}

== See Also ==
* [[parent::lua-enet]]
* [[enet.host]]
* [[enet.peer]]
== Other Languages ==
{{i18n|enet.host:peer_count}}