Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: Strogian
  • Content: Threads
  • Order by date
  1. Strogian

    Packet Filtering

    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...
  2. Strogian

    send() sending huge packets

    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...
  3. Strogian

    Don't know what's causing this bug

    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[] = &quot;The quick brown fox jumps over the lazy dog.&quot...
  4. Strogian

    sizeof

    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...
  5. Strogian

    Arrays, pointers, and Segmentation Faults

    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...
  6. Strogian

    Changing LCV in a For loop

    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...
  7. Strogian

    Floating point numbers

    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...
  8. Strogian

    for loop without statement

    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...
  9. Strogian

    Internet

    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 =)
  10. Strogian

    Certain key combos don't work

    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 &quot;click&quot; every second or so. Also, how do I decide what &quot;KBC...
  11. Strogian

    How to have air filters on my fans?

    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 &quot;normal&quot...

Part and Inventory Search

Back
Top