Search:

Type: Posts; User: C4nc3l; Keyword(s):

Search: Search took 0.17 seconds.

  1. Replies
    4
    Views
    304

    Re: Distance from host in C

    Ok thanks, it's a bad news for me... but now i know :)
    I thought that also with stream i can access to ip header... so the results are sadly casual number :(
    One of my objectives it's to avoid root...
  2. Replies
    4
    Views
    304

    Re: Distance from host in C

    Thanks for the response.

    Ehm no, i've created a SOCK_STREAM with:

    socket(AF_INET, SOCK_STREAM, 0)
    I don't want to use RAW socket because they ask for root permissions... this can be a problem?...
  3. Replies
    4
    Views
    304

    Distance from host in C

    Hi all,
    I'm searching for a way to calculate distance between two host in my C program.
    I have an already open TCP socket, so i would like to use the ttl in ip header from that connection, but...
  4. Replies
    10
    Views
    861

    Re: Split a file in block in C

    Thanks to all, when i read with strlen(buf) to get the number of bytes read i only want to get a statistic control on the bytes read..., it's not to retrieve the size of the file, these line of code...
  5. Replies
    10
    Views
    861

    Re: Split a file in block in C

    Sorry, i didn't want to busy you with my code it's about 100 lines of idiot comments and prints :)
    How can i use binary mode?
    I read/write with fread/fwrite and i use a buffer of unsigned char......
  6. Replies
    10
    Views
    861

    Split a file in block in C

    Hi, i have created a function to split a file in 10kb blocks with fread and fwrite.
    If i try to use it with a txt file it works, but if i try to use it with a binary file the file isn't the same...
  7. Replies
    517
    Views
    237,870

    Re: HOWTO: Graphical IP Blocker

    I think IPblock is a nice tool...but... don't start in my pc :(
    When i try
    sudo ipblock start and also in GUI it start to work but it never turns to enabled...
    In command line it leaves me with ...
Results 1 to 7 of 7