From fd44c68801205eeece6495a641db50467ee4ece5 Mon Sep 17 00:00:00 2001 From: irungentoo Date: Fri, 28 Jun 2013 09:15:19 -0400 Subject: Couple fixes. --- core/network.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'core/network.c') diff --git a/core/network.c b/core/network.c index a20b02f6..bbc1f570 100644 --- a/core/network.c +++ b/core/network.c @@ -25,7 +25,7 @@ #include "network.h" -//returns current time in milleseconds since the epoch. +//returns current time in milliseconds since the epoch. uint64_t current_time() { uint64_t time; @@ -62,7 +62,7 @@ int sendpacket(IP_Port ip_port, char * data, uint32_t length) } -//Function to recieve data, ip and port of sender is put into ip_port +//Function to receive data, ip and port of sender is put into ip_port //the packet data into data //the packet length into length. //dump all empty packets. @@ -73,7 +73,7 @@ int recievepacket(IP_Port * ip_port, char * data, uint32_t * length) (*(int *)length) = recvfrom(sock, data, MAX_UDP_PACKET_SIZE, 0, (struct sockaddr *)&addr, &addrlen); if(*(int *)length <= 0) { - //nothing recieved + //nothing received //or empty packet return -1; } @@ -106,7 +106,7 @@ int init_networking(IP ip ,uint16_t port) //initialize our socket sock = socket(AF_INET, SOCK_DGRAM, IPPROTO_UDP); - //Functions to increase the size of the send and recieve UDP buffers + //Functions to increase the size of the send and receive UDP buffers //NOTE: uncomment if necessary /* int n = 1024 * 1024 * 2; -- cgit v1.2.3