I want to modify certain outgoing packets from my Windows XP box. What would be the easiest way to do this?
(e.g. if the dest.port == 2500, then slap on another TCP/IP header with dest.port==25 and dest.ip==11.22.33.44 -- encapsulation or IP tunneling, I guess)
I tried finding a program or...
Can anyone help me out? I wrote test server/client programs to see how send and recv worked, and they work how I'd expect them to. (when trying to send() a large packet, it will only send part of it) However, if I try to use telnet/internet explorer as the client instead, send() will send a...
OK, here's my program.
#include <stdio.h>
#include <string.h>
void minprintf(char *fmt, ...);
/* prints a few lines of output, to test minprintf */
int main()
{
int i = 321;
double ld = 43.5939232223;
char s[] = "The quick brown fox jumps over the lazy dog."...
Okay, I'm sort of confused about how sizeof works. Can I really use sizeof anywhere in the program (except #if statements) just like it is a function, or something? All of the sizeof's are replaced by the actual size of the object, right? The reason I'm asking, is this program:
#include...
Does anyone know exactly what happens when you define an array? I'm asking this, because (in Linux) I don't always get Segmentation Faults, when I would normally expect one. For example:
char s[25];
s[400] = 0;
s[-5] = 0;
With that, I don't think that I got any errors running the program. I...
I am learning C now (using a book), after learning Pascal and Visual BASIC. (by taking classes on them) I'm wondering, is it normal to change the loop control variable of a for loop (in C) inside the loop? Is it generally considered bad style? Or, are there just certain situations where it is...
Does anyone here know of a good web-page that explains floating point numbers, and how they are stored, well? I just realized that I have absolutely no idea how they work, when I had started thinking about how I would be able to compute the range of them. =) (Yes, I know there's stuff in...
Okay, I'm having an odd problem. I'm trying to make a program to test out the ranges of all the datatypes (exercise 2-1 in The C Programming Language, 2nd ed.). Here's what I wrote (from memory, but I think it's exact):
#include <stdio.h>
int main()
{
short si;
int i;
long li...
Can someone tell me of a good resource to learn how to write an server/client for the internet, using C? I'm planning on writing a game, if that helps define what I need. Thanks. (btw. time is an issue, so the shorter, the better =)
I am having a problem with my keyboard. I'm playing a game, and when I try to hold the S, A, and C keys (I think.. it's either that or the S, D, and C keys) it won't do a certain one of their functions. It will just "click" every second or so.
Also, how do I decide what "KBC...
Hello. I want some air filters on my computer's intake fans, and was wondering on the best way to do that. At overclockers.com, there was an article about cutting up some sort of cleaner pads and taping something to the case, etc. but that seems kinda messy. Is there any "normal"...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.