Search:

Type: Posts; User: Scramble

Search: Search took 0.00 seconds.

  1. Replies
    1
    Views
    2,483

    I developed a library that performs various...

    I developed a library that performs various formatting for RIFF chunks, and it is absolutely dependent on the endianness of the system. I am porting it to a wider range of systems, but the issue...
  2. Replies
    1
    Views
    3,538

    binding to 0.0.0.0

    The goal is to send a UDP packet adhering to the bootp and DHCP more specifically.
    now I need to send it from a src ip of 0.0.0.0 to the broadcast address 255.255.255.255
    the issue is that when I...
  3. In C/C++ boolean assignments are basically broken...

    In C/C++ boolean assignments are basically broken down into this

    if( a ) is really saying if ( a != 0)
    and

    if ( !a ) is really saying if ( a== 0 )

    The do-while loop's condition is...
  4. Replies
    3
    Views
    4,624

    yeah, the way to handle it is with the ...

    yeah, the way to handle it is with the
    Connection: close
    in the GET Request

    I just figured that out while playing with netcat.
  5. Replies
    3
    Views
    4,624

    http connection lingers

    Why does the http protocol linger at the end of the data transmission and how do you handle this.

    I submit an HTTP GET request to a host, via sockets
    I start a while loop using read() but at the...
  6. Replies
    1
    Views
    1,754

    zlib stream buffer problem

    here's the code



    #include <stdio.h>
    #include <stdlib.h>
    #include <sys/types.h>
    #include <sys/stat.h>
    #include <fcntl.h>
    #include <zlib.h>
  7. Replies
    3
    Views
    2,191

    while looking at the assemnly I learned that the...

    while looking at the assemnly I learned that the way the compiler arranges the two char arrays
    for char *
    the string is set in static memory (i.e. .LC0 .string "blahblah")
    where as
    char []...
  8. Replies
    3
    Views
    2,191

    char pointers and arrays

    while working on a simple little utility I came across something I don't quite understand
    why is it that


    char str[] = "first,second,third";

    works for strtok()
    but
  9. Replies
    29
    Views
    26,092

    #include void func1()...

    #include <stdio.h>

    void func1() { printf("Function 1 Called\n"); }
    void func2() { printf("Function 2 Called\n"); }
    void func3() { printf("Function 3 Called\n"); }

    int main(int argc, char...
Results 1 to 9 of 9