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...
Type: Posts; User: Scramble
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...
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...
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...
yeah, the way to handle it is with the
Connection: close
in the GET Request
I just figured that out while playing with netcat.
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...
here's the code
#include <stdio.h>
#include <stdlib.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <zlib.h>
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 []...
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
#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...