Search:

Type: Posts; User: lantzvillian

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Malloc'd linear structure is causing errors in valgrind

    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...
  2. I see it being defined in this c file as: ...

    I see it being defined in this c file as:


    EapAuthIdentityStateMachine::EapAuthIdentityStateMachine
    (EapSwitchStateMachine &s)
    : EapMethodStateMachine(s),
    ...
  3. I suspect you are right as its common in C...

    I suspect you are right as its common in C libraries.
  4. Yes thats true, but unfortunately - the source is...

    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...
  5. Undefined Reference/ Poorly defined inheritenance

    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...
  6. It doesn't have to be scientifically accurate - 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...
  7. Could spawning a thread lead to concurrency...

    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.
  8. Suggestions for a quick way to create/check a timestamp for a threshold.

    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...
  9. Ahh yes so what I did was this: ...

    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]));
    ...
  10. You sir are awesome. Simple is - simple forgets.

    You sir are awesome. Simple is - simple forgets.
  11. Reading csv file into a struct - not the correct values

    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...
  12. Ahh sorry to get back to you so late - ...

    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...
  13. System is running on an xscale 455 Mhz and 32 mb...

    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...
  14. Double Linked Dynamic Lists Vs Unrolled Linked Lists

    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...
  15. Ooooh thanks!! well you got me up and running...

    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.


    ...
  16. Well that seems to be working, but if I go to far...

    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,...
  17. Getting data appended to a file and searching

    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...
  18. Replies
    2
    Views
    8,050

    Figured it out - In case anyone wants to know,...

    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,...
  19. Replies
    2
    Views
    8,050

    strstr char in buffer returning null

    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...
  20. Replies
    8
    Views
    1,410

    Well here is a copy of my basic makefile ...

    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
  21. howto handle out-of-band traffic on server

    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...
  22. Replies
    1
    Views
    5,728

    EPOLL echo server not concurrent

    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...
  23. Solved - logic error on the loop and had to add...

    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.
  24. OK so I got a structure and passing information...

    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.

    ...
  25. Salem, thanks for the info.. okay so why woud I...

    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...
Results 1 to 25 of 44
Page 1 of 2 1 2