Search:

Type: Posts; User: Cactus_Hugger

Page 1 of 20 1 2 3 4

Search: Search took 0.01 seconds; generated 46 minute(s) ago.

  1. Replies
    4
    Views
    14,005

    What exactly are you having trouble with? The RFC...

    What exactly are you having trouble with? The RFC you mentioned, RFC 1035, details the DNS protocol, and sounds like it is what you want.
  2. Replies
    12
    Views
    2,543

    Also, your wsprintf() will overflow the buffer...

    Also, your wsprintf() will overflow the buffer szBuf - it generates 15 characters of data, counting the null terminator. (Also, you don't need to zero the first character - wsprintf() is just...
  3. This is because your input buffer looks like...

    This is because your input buffer looks like this:

    4 2 \n J o e B o b \n
    X X ^
    At the time you call getline, ^ is where the input is, X has already been read by the >>. getline() sees...
  4. Replies
    5
    Views
    1,555

    What exactly do you mean? Do you want the size,...

    What exactly do you mean? Do you want the size, in bytes, of the program itself, or of a particular file that it is loading?

    If you're reading a file using the standard C functions (fopen, fclose,...
  5. Replies
    4
    Views
    920

    Or you could write for ncurses, and use an...

    Or you could write for ncurses, and use an implementation of ncurses on Windows, such as PDCurses. (One of many, google "windows ncurses" for more...)
  6. Indentation. You are missing a whole helluva lot...

    Indentation. You are missing a whole helluva lot of indentation.

    Other than crappy coding, it works for me. (Gentoo Linux, 2.6.31 - with modifications to remove the WinSock stuff, of course)
    ...
  7. Replies
    8
    Views
    1,192

    Ah, ok. For the visual cue then, perhaps a...

    Ah, ok. For the visual cue then, perhaps a combination of the two.
  8. Replies
    6
    Views
    2,175

    There is no portable option. There are...

    There is no portable option. There are OS-specific calls, however, I do not know what they are.

    This is going to depend on where in the filesystem you are writing (as different spots may be on...
  9. Replies
    8
    Views
    1,192

    This seems quite kludgy. If I go to the Menu...

    This seems quite kludgy.

    If I go to the Menu in the upper left (Alt+Space) and hit resize, does it still prevent me from resizing? I'd almost bet not, but I'm in Linux at the moment.
  10. Replies
    55
    Views
    8,956

    That's an odd incentive... perhaps the admiration...

    That's an odd incentive... perhaps the admiration of my peers...?
  11. Replies
    1
    Views
    699

    If you're learning about the internals of a...

    If you're learning about the internals of a linked list, and the concept of a linked list, probably not.

    If you're writing normal code, then you should be using std::list
  12. Thread: accept()

    by Cactus_Hugger
    Replies
    11
    Views
    2,225

    I'm not sure I'd use select(). For one, the man...

    I'm not sure I'd use select(). For one, the man page notes:

    ...and thus the advice to always use non-blocking sockets with select(). I'd give the same advice here, since that's really what you...
  13. Replies
    15
    Views
    4,098

    Nope. "hello" is a length 6 character array,...

    Nope. "hello" is a length 6 character array, containing
    {'h', 'e', 'l', 'l', 'o', '\0'} strlen("hello") returns 5, of course. Thus:

    send(s, "hello", 5, 0); // or strlen("hello")
    Sends 5...
  14. Replies
    3
    Views
    875

    Should probably be: if(0 == strcmp(tok,...

    Should probably be:

    if(0 == strcmp(tok, "exit"))
    ...have you tried that one yet?
  15. Replies
    4
    Views
    4,442

    is your cisco router acting like a layer 2...

    is your cisco router acting like a layer 2 switch? And is your modem actually a router? Every cable modem with 1 ethernet jack that I've ever seen has just been a modem, and connecting to the one...
  16. Replies
    4
    Views
    4,442

    is your cisco router acting like a layer 2...

    is your cisco router acting like a layer 2 switch? And is your modem actually a router? Every cable modem with 1 ethernet jack that I've ever seen has just been a modem, and connecting to the one...
  17. Replies
    12
    Views
    10,749

    You're still making little sense. Does the...

    You're still making little sense. Does the command `ifconfig eth0` give you output? Also `cat /proc/net/dev` should show your ethernet devices. If you see your device in either listing, then you have...
  18. Replies
    3
    Views
    851

    their_answer = 'y'; while(their_answer == 'y') {...

    their_answer = 'y';
    while(their_answer == 'y') { the_whole_program; }

    "it wouldn't load up." Generally there is some sort of error or symptom, I mean, it didn't just pop up a message box with...
  19. Replies
    12
    Views
    10,749

    You need to be more specific. This: ...

    You need to be more specific. This:

    ...contradicts:

    Did ifconfig eth0 give you ouput, even if with a wrong IP? Also, are you sure your device is eth0? (What's in /dev/net/dev ?)
  20. Replies
    6
    Views
    4,317

    I get an external IP, actually. In this instance,...

    I get an external IP, actually. In this instance, my school is my ISP. (It's a college.) I'll randomize a few numbers for an example:

    I'll get the following, for example:
    128.100.203.123 = my IP...
  21. Replies
    6
    Views
    4,317

    DHCP & routing table

    I am trying to configure my system (laptop, linux) to connect to a wireless point here at my school. I'm almost certain I've got my configuration correction, but I'd like a sanity check.

    The...
  22. Replies
    5
    Views
    1,373

    Cross-platform development is just using things...

    Cross-platform development is just using things that work on multiple platforms. If it doesn't work on say, both Linux and Windows, then you write a wrapper function that calls the appropriate calls...
  23. Replies
    15
    Views
    23,998

    The use of (struct sockaddr *) is what you're...

    The use of (struct sockaddr *) is what you're supposed to do.

    Your networking code, more or less, is fine. Your use of buffers... your server has a buffer overflow, and I suspect you have gaps in...
  24. Replies
    33
    Views
    4,796

    The FAT is not the authoratative source for disk...

    The FAT is not the authoratative source for disk size information. Never was, never will be. How you get the actual size is probably hardware dependent, and certainly, from a program's point-of-view,...
  25. Replies
    6
    Views
    1,625

    Yes -- even for single column listviews, you need...

    Yes -- even for single column listviews, you need to add that column.
Results 1 to 25 of 500
Page 1 of 20 1 2 3 4