w10schools
Login Register
  • Home
  • Tutorials
    • HTML, CSS
      • HTML, HTML5
      • CSS, CSS3
    • XML
    • JavaScript, AJAX
    • PHP
    • Ruby on Rails
      • Ruby
      • Rails
    • ASP.NET
      • ASP
      • C# .NET
    • Java
      • JSP
    • Databases
      • MySQL
      • MSSQL Server
      • Oracle
    • Web Server
      • Windows
      • Linux
      • Apache
      • IIS
    • Design
      • Dreamweaver
      • Flash
      • Photoshop
      • Fireworks
      • CorelDRAW
      • Illustrator
  • References
    • HTML
      • Bootstrap
    • CSS
      • CSS Selectors
      • Sass
    • JavaScript
    • Mobile Apps
      • Cordova
    • Ruby on Rails
      • Ruby
      • Rails
    • PHP
      • Function
      • Language
      • CodeIgniter
      • Phalcon
      • PHPUnit
      • Symfony
      • Drupal
      • Yii
      • Laravel
    • Perl
      • Perl
    • Python
      • Python
      • Django
      • NumPy
      • Pandas
      • scikit-image
      • scikit-learn
      • Statsmodels
      • Matplotlib
    • Lua
      • Lua
    • C, C++
      • C
      • C++
    • Server
      • Docker
      • Apache HTTP Server
      • Nginx
    • Database
      • PostgreSQL
    • Big Data
      • TensorFlow
    • Game Development
      • Phaser
      • LÖVE
  • Articles
    • News
    • General
      • Website Promotion
      • Online Advertising
      • Make Money Online
    • Editorials
    • Interviews
    • Web Roundups
  • Resources
    • Design
      • Fonts
      • Graphics
      • Vectors
      • Templates
      • UI (User Interface)
      • Brushes
      • Patterns, Backgrounds
      • Textures
    • Web Development
      • HTML, CSS
      • XML
      • JavaScript, AJAX
      • Ruby on Rails
      • PHP
      • Java
      • .NET
      • Python
      • Perl
      • Flash
    • Mobile Application Development
      • Mobile Development Tools
      • Swift
    • Online Services
      • Online Storage
      • Web Hosting
  • Tools
    • Generators
Edit
In Place Editing Advanced Editing
  • References
  • Game Development
  • LÖVE
  • love
  • Third-party modules
  • lua-enet

enet.host:peer count

enet.host:peer count

Returns the number of peers that are allocated for the given host. This represents the maximum number of possible connections.

Function

Synopsis

host:peer_count()

Arguments

None.

Returns

number limit
The maximum number of peers allowed.

See Also

  • lua-enet
  • enet.host
  • enet.peer
Links:
  • https://love2d.org/wiki/enet.host:peer_count
doc_love
doc_love
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.

Popular Articles
enet.host:get peer enet.host:get peer Returns the connected peer at the specified index (starting at 1). ENet stores all peers in an array of the corresponding host
enet.host enet.host Description An ENet host for communicating with peers. On creation it will bind to a port on an address, unless otherwise specified, which
enet.host:destroy enet.host:destroy Destroys the host structure and closes all of its connections. This function is also ran automatically by lua's garbage collector,
enet.host create enet.host create Returns a new host. All arguments are optional. A bind_address of nil makes a host that can not be connected to (typically a clie
enet.host:flush enet.host:flush Sends any queued packets. This is only required to send packets earlier than the next call to host:service, or if host:service will


Return to View
  • Facebook
  • Tweet
  • Digg it
  • Stumbleupon
  • Delicious
  • Plus Share

Designed by : w10schools

service@w10schools.com

Our Partners: aeeble – Providing content publishing and search solutions