Search:

Type: Posts; User: avidkaos999

Search: Search took 0.01 seconds.

  1. Replies
    26
    Views
    7,044

    Ha, not very fancy at all tbh, it works but...

    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...
  2. Replies
    0
    Views
    987

    Custom Sockets Library

    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...
  3. Replies
    26
    Views
    7,044

    Managed to do this eventually. I just went...

    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...
  4. Replies
    26
    Views
    7,044

    Thanks for this, ill take a look at it later on...

    Thanks for this, ill take a look at it later on this afternoon.
  5. Replies
    26
    Views
    7,044

    My coding is based on communicating with a Valve...

    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...
  6. Replies
    26
    Views
    7,044

    Right, no more segfaults. However it still isnt...

    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...
  7. Replies
    26
    Views
    7,044

    And now to sound like a noob again, but how would...

    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...
  8. Replies
    26
    Views
    7,044

    Still not got anywhere with this at all. Tried...

    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...
  9. Replies
    26
    Views
    7,044

    Excuse the code below, its copied and pasted from...

    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...
  10. Replies
    26
    Views
    7,044

    Been tinkering. with a for loop.. for (i =...

    Been tinkering. with a for loop..



    for (i = 5, i <= sizeof(buffer), i++)
    {
    cout << "Char: " << buffer[i] << "\n";
    }
  11. Replies
    26
    Views
    7,044

    Ah didnt realise it stripped the headers. Alright...

    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....
  12. Replies
    26
    Views
    7,044

    Thanks for that Elkvis, worked beautifully. Now...

    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...
  13. Replies
    26
    Views
    7,044

    Thanks, ive managed to get this functional now....

    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...
  14. Replies
    26
    Views
    7,044

    I'll be honest, the server im planning to connect...

    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...
  15. Replies
    26
    Views
    7,044

    UDP Sockets (linux)

    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...
  16. Replies
    2
    Views
    905

    Never mind, managed to work it out. Still not...

    Never mind, managed to work it out. Still not familiar with what this method is actually called though? Could someone tell me please?
  17. Replies
    2
    Views
    905

    Class / Class Objects?

    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...
  18. Replies
    5
    Views
    1,549

    Thanks for the replies. What i actually meant...

    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...
  19. Replies
    5
    Views
    1,549

    Yeah tbh, I jumped straight to the final page and...

    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...
  20. Replies
    5
    Views
    1,549

    Book Recommendations

    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...
Results 1 to 20 of 20