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.
Type: Posts; User: Cactus_Hugger
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.
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...
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...
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,...
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...)
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)
...
Ah, ok. For the visual cue then, perhaps a combination of the two.
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...
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.
That's an odd incentive... perhaps the admiration of my peers...?
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
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...
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...
Should probably be:
if(0 == strcmp(tok, "exit"))
...have you tried that one yet?
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...
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...
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...
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...
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 ?)
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...
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...
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...
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...
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,...
Yes -- even for single column listviews, you need to add that column.