Ha, not very fancy at all tbh, it works but currently has basic error checking, it only supports Linux natively, with support for windows sockets when compiled with Cygwin on Windows (test app i...
Type: Posts; User: avidkaos999
Ha, not very fancy at all tbh, it works but currently has basic error checking, it only supports Linux natively, with support for windows sockets when compiled with Cygwin on Windows (test app i...
As mentioned in my last thread, im working on developing a program using sockets. I have a quick question which is more class related than anything.
I'm coding my own sockets library class, and as...
Managed to do this eventually. I just went through the buffer looking for the NULL character, and copied the strings from last null+1 to current null-1 to obtain the server information. Thanks for...
Thanks for this, ill take a look at it later on this afternoon.
My coding is based on communicating with a Valve source server, in the example code i listed it communicates with a Left 4 Dead 2 server. The sendto is fully functional, it sends the appropriate...
Right, no more segfaults. However it still isnt saving the buffer into the appropriate places in the struct. i assumed it would do that automatically with:
ReplyPacket *temp; temp = (ReplyPacket...
And now to sound like a noob again, but how would i accomplish that?
ReplyPacket test;
test = buf1;
and different variations of it return conversion errors. Would the problem lie within the...
Still not got anywhere with this at all. Tried using a for loop checking each char that get returned for NULL. Only problem with that is only the strings are ended with the NULL character. the...
Excuse the code below, its copied and pasted from my main program so most of these headers could probably be snipped etc.
#include <iostream>
#include <stdio.h>
#include <stdlib.h>
#include...
Been tinkering. with a for loop..
for (i = 5, i <= sizeof(buffer), i++)
{
cout << "Char: " << buffer[i] << "\n";
}
Ah didnt realise it stripped the headers. Alright well, the packet im currently receiving is; https://developer.valvesoftware.com/wiki/Source_Server_Queries#Source_servers_2. The A2S_INFO response....
Thanks for that Elkvis, worked beautifully. Now returning the data that i require ;).
Time to start googling for more information regarding constructing and parsing UDP data packets, any links...
Thanks, ive managed to get this functional now. Now my next step is to understand the UDP packets properly. Do you, or anyone else have any useful links for someone new to start learning about UDP...
I'll be honest, the server im planning to connect to, is a valve source server, so i wont have access to the server sockets. The program im writing is essentially a client. im just wondering if i can...
Hey all,
I'm developing a program that uses UDP sockets, the main program code and its other interfaces are fine, and work 100% as intended. However, this is my first foray into working with UDP...
Never mind, managed to work it out. Still not familiar with what this method is actually called though? Could someone tell me please?
Hey folks, I could use some help on the implementation of this:
I have a CEngine class which is called as the program engine. Functions are Start, Loop, End. Start contains the init functions, Loop...
Thanks for the replies.
What i actually meant by up-to-date books was just as was said, updated revisions. For example I see that Accelerated C++ was published in 2000, are there no recent...
Yeah tbh, I jumped straight to the final page and noted that the last post was in 2010. As there been no other book releases since then? Revised editions etc? Just trying to make an informed decision...
Hey,
I know theres a sticky at the top of the page, but I thought i'd ask anyway, in case of newer titles etc.
I'm looking to begin learning C++ properly (ive tinkered in the past, nothing...