Skip to content

Commit

Permalink
minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
inlife committed Sep 18, 2018
1 parent 7d2e620 commit b2c1176
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions include/enet.h
Original file line number Diff line number Diff line change
Expand Up @@ -918,15 +918,16 @@ extern "C" {
ENET_API enet_uint32 enet_peer_get_id(ENetPeer *);
ENET_API enet_uint32 enet_peer_get_ip(ENetPeer *, char * ip, size_t ipLength);
ENET_API enet_uint16 enet_peer_get_port(ENetPeer *);
ENET_API ENetPeerSta enet_peer_get_state(ENetPeer *);
ENET_API enet_uint32 enet_peer_get_rtt(ENetPeer *);
ENET_API enet_uint64 enet_peer_get_packets_sent(ENetPeer *);
ENET_API enet_uint32 enet_peer_get_packets_lost(ENetPeer *);
ENET_API enet_uint64 enet_peer_get_bytes_sent(ENetPeer *);
ENET_API enet_uint64 enet_peer_get_bytes_received(ENetPeer *);

ENET_API void * enet_peer_get_data(ENetPeer *);
ENET_API void enet_peer_set_data(ENetPeer *, const void *);
ENET_API ENetPeerState enet_peer_get_state(ENetPeer *);

ENET_API void * enet_peer_get_data(ENetPeer *);
ENET_API void enet_peer_set_data(ENetPeer *, const void *);

ENET_API void * enet_packet_get_data(ENetPacket *);
ENET_API enet_uint32 enet_packet_get_length(ENetPacket *);
Expand Down Expand Up @@ -1543,18 +1544,11 @@ extern "C" {
if (event != NULL) {
enet_protocol_change_state(host, peer, ENET_PEER_STATE_CONNECTED);

<<<<<<< HEAD
peer->totalDataSent = 0;
peer->totalDataReceived = 0;
peer->totalPacketsSent = 0;
peer->totalPacketsLost = 0;

=======
peer->totalDataSent = 0;
peer->totalDataReceived = 0;
peer->totalPacketsSent = 0;
peer->totalPacketsLost = 0;
>>>>>>> 49c98669270b83ce4b05785fa917e10cce389e00
event->type = ENET_EVENT_TYPE_CONNECT;
event->peer = peer;
event->data = peer->eventData;
Expand Down

0 comments on commit b2c1176

Please sign in to comment.