Difference between revisions of "enet.peer (Français)"
(→Voir également) |
(→Fonctions) |
||
Line 3: | Line 3: | ||
== Fonctions == | == Fonctions == | ||
+ | {{#ask: [[Category:Functions (Français)]] [[parent::enet.peer (Français)]] | ||
+ | | headers=hide | ||
+ | | format=template | ||
+ | | template=ListingFields | ||
+ | | introtemplate=ListingIntro | ||
+ | | outrotemplate=ListingOutro | ||
+ | | ?Description | ||
+ | | ?PrettySince | ||
+ | | ?PrettyRemoved | ||
+ | }} | ||
+ | |||
{| class="wikitable" | {| class="wikitable" | ||
!Function | !Function |
Latest revision as of 18:03, 24 September 2021
Description
Un pair ENet avec lequel les paquets de données peuvent être envoyés ou reçus. Dans la majorité des applications vous garderez la piste des pairs connectés.
Fonctions
enet.peer:disconnect (Français) | Demande une déconnexion à un pair. | ||
enet.peer:disconnect now (Français) | Force une déconnexion immédiate du pair. | ||
enet.peer:index (Français) | Retourne l'index du pair. | ||
enet.peer:ping (Français) | Envoie un signal ping au pair. | ||
enet.peer:ping interval (Français) | Spécifie un intervalle en millisecondes entre les envois de pings à l'autre bout de la connexion. | ||
enet.peer:receive (Français) | Tente d'extraire de la file d'attente un paquet entrant pour ce pair. | ||
enet.peer:send (Français) | Met en fil d'attente, un paquet à émettre à un peer (pair). | ||
enet.peer:state (Français) | Retourne l'état d'un pair sous forme de chaîne de caractères. |
Function | Description |
---|---|
peer:disconnect | Requests a disconnection from the peer. |
peer:disconnect_now | Force immediate disconnection from peer. |
peer:disconnect_later | Request a disconnection from peer, but only after all queued outgoing packets are sent. |
peer:reset | Forcefully disconnects peer. The peer is not notified of the disconnection. |
peer:ping | Send a ping request to peer, updates round_trip_time. This is called automatically at regular intervals. |
peer:receive | Attempts to dequeue an incoming packet for this peer. |
peer:send | Queues a packet to be sent to peer. |
peer:throttle_configure | Changes the probability at which unreliable packets should not be dropped. |
peer:ping_interval | Specifies the interval in milliseconds that pings are sent to the other end of the connection (defaults to 500). |
peer:timeout | Returns or sets the parameters when a timeout is detected. |
peer:index | Returns the index of the peer. |
peer:state | Returns the state of the peer. |
peer:connect_id | Returns the field ENetPeer::connectID that is assigned for each connection. |
peer:round_trip_time | Returns or sets the current round trip time (i.e. ping). |
peer:last_round_trip_time | Returns or sets the round trip time of the previous round trip time computation. |
Voir également
Autres langues
Dansk –
Deutsch –
English –
Español –
Français –
Indonesia –
Italiano –
Lietuviškai –
Magyar –
Nederlands –
Polski –
Português –
Română –
Slovenský –
Suomi –
Svenska –
Türkçe –
Česky –
Ελληνικά –
Български –
Русский –
Српски –
Українська –
עברית –
ไทย –
日本語 –
正體中文 –
简体中文 –
Tiếng Việt –
한국어
More info