GLProgramming.com

home :: about :: development guides :: irc :: forums :: search :: paste :: links :: contribute :: code dump

-> Click here to learn how to get live help <-


New Paste :: Recent Pastes:: Add Line Numbers


A Paste by Anonymous
                    nBytes = recv(mySocket, (char*)&messageSize, sizeof(messageSize), 0);

                    messageSize = ntohl(messageSize);
                    nBytes = recv(mySocket, buffer, messageSize, 0);
                    buffer[messageSize] = '\0';