Hello all,
I am curious if I am doing this correctly as per valgrind checking for leaks and other errors.
My program basically, allocates a set amount of space for X objects and then performs a...
Type: Posts; User: lantzvillian
Hello all,
I am curious if I am doing this correctly as per valgrind checking for leaks and other errors.
My program basically, allocates a set amount of space for X objects and then performs a...
I see it being defined in this c file as:
EapAuthIdentityStateMachine::EapAuthIdentityStateMachine
(EapSwitchStateMachine &s)
: EapMethodStateMachine(s),
...
I suspect you are right as its common in C libraries.
Yes thats true, but unfortunately - the source is HUGE. I am doing this as a favour for the previous researchers and advisors. I suspect that much of this is poorly written which is why it makes...
Hello all,
I'm mostly a C embedded developer and definitely catching up with what I've forgotten with C++. I am forward porting an ancient project that is starting to get attention again, but I...
It doesn't have to be scientifically accurate - I think I can check the CPU's clock for ticks.
Essentially.. it is possible I will be seeing 1000+ packets per second and I don't want to pound...
Could spawning a thread lead to concurrency issues though especially since this will be cross compiled? multi-threading isn't too common on limited hardware.
Hi guys,
I have looked around and there are numerous timestamp implementations, but I'm looking for your advice on how to create and check a timestamp in the quickest method with minimal overhead...
Ahh yes so what I did was this:
temp.ip_p = atoi(flds[0]);
memcpy(&temp.ether_shost,(char *)ether_aton((char *)flds[1]),sizeof(u_char[ETHER_ADDR_LEN]));
...
You sir are awesome. Simple is - simple forgets.
Hi all,
I've spend a couple of hours beating my head against the wall trying to read a csv back into a struct in my program. For some reason, I cannot get the values, which I wrote to the file...
Ahh sorry to get back to you so late - essentially here is what happening:
As new connections come in, the connections are compared to this maintained list (for lack of a better word) from end to...
System is running on an xscale 455 Mhz and 32 mb ram free after OS.
I'm looking at a doubly linked list vs xor vs skiplist. Each collection has 60,000 elements and I insert then traverse and...
Hi all,
I wrote an array based connection tracker in c, but I'm looking to move it to either dynamic lists or maybe unrolled linked lists. Double linked dynamic lists are simple enough, but this...
Ooooh thanks!! well you got me up and running Tater. Code Karma.
From your code to writing a nasty little mystrstr which checks for the \x89 start of the PNG, I have arrived at the bottom.
...
Well that seems to be working, but if I go to far back it gets into the image and can't find "Test" - here is what I have:
char buffer[50];
op=fopen(ENCIMAGENAME,"rb");
fseek(op, -12,...
Hi all,
In continuation, albeit a different task, I am trying to get data that has been appended to the end of an image. The delimiter is "Test" and I was trying to use strstr and shift the...
Figured it out -
In case anyone wants to know, the <89> refers to the fact that it is hexidecimal 0x89. Here is what I did:
int numbytes;
if ((numbytes = recv(sockid, buffer, MAXBUF,...
Hi all,
I am trying to separate a HTTP get and an image from the recv buffer
Essentially, I want everything after and including the <89> as per this in vi.. although a hex dump says thats...
Well here is a copy of my basic makefile
CFLAGS = -g -Wall
CC = gcc
LIBS = -levent -L/usr/local/lib
INCLUDES = -I/usr/local/include
SRCS = simpleproxy.c client.c
Hi all,
Quick question, I have a simple port proxy program working, but I want it to be able to deal with out-of-band traffic.
I did some Googling, and it looks like Signals are the way to go...
Hi all,
I am working on an epoll version of an echoserver that I am porting from a multithreaded version I wrote.
What it should do:
The server should get a connection from a client > say x...
Solved - logic error on the loop and had to add an if write returns a -1 exit exit exit. Had a signal for pipe broken.
OK so I got a structure and passing information across now... I still can't get the DATA-ACK back and a printout for every packet sent from the client to the server.
Off to bed.. burned out.
...
Salem, thanks for the info.. okay so why woud I not reset it in this case? the read is a blocking call no?
Here is the function now:
static void* threadify(void* arg) {
printf("got...