peer.c File Reference


Detailed Description

#include <string.h>
#include "enet/enet.h"

Defines

#define ENET_BUILDING_LIB   1

Functions

void enet_peer_throttle_configure (ENetPeer *peer, enet_uint32 interval, enet_uint32 acceleration, enet_uint32 deceleration)
 Configures throttle parameter for a peer.
int enet_peer_throttle (ENetPeer *peer, enet_uint32 rtt)
int enet_peer_send (ENetPeer *peer, enet_uint8 channelID, ENetPacket *packet)
 Queues a packet to be sent.
ENetPacketenet_peer_receive (ENetPeer *peer, enet_uint8 channelID)
 Attempts to dequeue any incoming queued packet.
void enet_peer_reset_queues (ENetPeer *peer)
void enet_peer_reset (ENetPeer *peer)
 Forcefully disconnects a peer.
void enet_peer_ping (ENetPeer *peer)
 Sends a ping request to a peer.
void enet_peer_disconnect_now (ENetPeer *peer, enet_uint32 data)
 Force an immediate disconnection from a peer.
void enet_peer_disconnect (ENetPeer *peer, enet_uint32 data)
 Request a disconnection from a peer.
void enet_peer_disconnect_later (ENetPeer *peer, enet_uint32 data)
 Request a disconnection from a peer, but only after all queued outgoing packets are sent.
ENetAcknowledgement * enet_peer_queue_acknowledgement (ENetPeer *peer, const ENetProtocol *command, enet_uint16 sentTime)
ENetOutgoingCommand * enet_peer_queue_outgoing_command (ENetPeer *peer, const ENetProtocol *command, ENetPacket *packet, enet_uint32 offset, enet_uint16 length)
ENetIncomingCommand * enet_peer_queue_incoming_command (ENetPeer *peer, const ENetProtocol *command, ENetPacket *packet, enet_uint32 fragmentCount)


Generated on Wed Jun 6 14:33:50 2007 for enet by  doxygen 1.5.1