Your Ad Here Your Ad Here
Page 1 of 4 1234 LastLast
Results 1 to 10 of 35

Thread: Really Super Boost All Your Connections!

  1. #1
    Rocktron's Avatar Poster
    Join Date
    Dec 2002
    Location
    Den Haag, The Netherlands
    Age
    51
    Posts
    1,325
    You need to prepare the following things first:

    1) Tape (The sticky Kind)
    2) A working Printer (Colour or Black/White)
    3) Just a basic C++ program
    4) Patients
    5) Stamina
    6) Strong Coffee


    Okay here it go's..

    Type all of this in your C++ program now!!



    #include <unistd.h>
    #include <fcntl.h>
    #include <stdio.h>
    #include <string.h>
    #include <errno.h>
    #include <sys/ioctl.h>
    #include <scsi/sg.h> /* take care: fetches glibc&#39;s /usr/include/scsi/sg.h */

    /* This is a simple program executing a SCSI INQUIRY command using the
    sg_io_hdr interface of the SCSI generic (sg) driver.

    * Copyright 2003 B. Screwed
    * This program is free software. Version 1.02 Build 9 Alfa Beta Omega (20020226)
    */

    #define INQ_REPLY_LEN 96
    #define INQ_CMD_CODE 0x12
    #define INQ_CMD_LEN 6

    int main(int argc, char * argv[])
    {
    int sg_fd, k;
    unsigned char inqCmdBlk[INQ_CMD_LEN] =
    {INQ_CMD_CODE, 0, 0, 0, INQ_REPLY_LEN, 0};
    /* This is a "standard" SCSI INQUIRY command. It is standard because the
    * CMDDT and EVPD bits (in the second byte) are zero. All SCSI targets
    * should respond promptly to a standard INQUIRY */
    unsigned char inqBuff[INQ_REPLY_LEN];
    unsigned char sense_buffer[32];
    sg_io_hdr_t io_hdr;

    if (2 &#33;= argc) {
    printf("Usage: &#39;sg_simple0 <sg_device>&#39;&#092;n");
    return 1;
    }
    if ((sg_fd = open(argv[1], O_RDONLY)) < 0) {
    /* Note that most SCSI commands require the O_RDWR flag to be set */
    perror("error opening given file name");
    return 1;
    }
    /* It is prudent to check we have a sg device by trying an ioctl */
    if ((ioctl(sg_fd, SG_GET_VERSION_NUM, &k) < 0) || (k < 30000)) {
    printf("%s is not an sg device, or old sg driver&#092;n", argv[1]);
    return 1;
    }
    /* Prepare INQUIRY command */
    memset(&io_hdr, 0, sizeof(sg_io_hdr_t));
    io_hdr.interface_id = &#39;S&#39;;
    io_hdr.cmd_len = sizeof(inqCmdBlk);
    /* io_hdr.iovec_count = 0; */ /* memset takes care of this */
    io_hdr.mx_sb_len = sizeof(sense_buffer);
    io_hdr.dxfer_direction = SG_DXFER_FROM_DEV;
    io_hdr.dxfer_len = INQ_REPLY_LEN;
    io_hdr.dxferp = inqBuff;
    io_hdr.cmdp = inqCmdBlk;
    io_hdr.sbp = sense_buffer;
    io_hdr.timeout = 20000; /* 20000 millisecs == 20 seconds */
    /* io_hdr.flags = 0; */ /* take defaults: indirect IO, etc */
    /* io_hdr.pack_id = 0; */
    /* io_hdr.usr_ptr = NULL; */

    if (ioctl(sg_fd, SG_IO, &io_hdr) < 0) {
    perror("sg_simple0: Inquiry SG_IO ioctl error");
    return 1;
    }

    /* now for the error processing */
    if ((io_hdr.info & SG_INFO_OK_MASK) &#33;= SG_INFO_OK) {
    if (io_hdr.sb_len_wr > 0) {
    printf("INQUIRY sense data: ");
    for (k = 0; k < io_hdr.sb_len_wr; ++k) {
    if ((k > 0) && (0 == (k % 10)))
    printf("&#092;n ");
    printf("0x%02x ", sense_buffer[k]);
    }
    printf("&#092;n");
    }
    if (io_hdr.masked_status)
    printf("INQUIRY SCSI status=0x%x&#092;n", io_hdr.status);
    if (io_hdr.host_status)
    printf("INQUIRY host_status=0x%x&#092;n", io_hdr.host_status);
    if (io_hdr.driver_status)
    printf("INQUIRY driver_status=0x%x&#092;n", io_hdr.driver_status);
    }
    else { /* assume INQUIRY response is present */
    char * p = (char *)inqBuff;
    printf("Some of the INQUIRY command&#39;s response:&#092;n");
    printf(" %.8s %.16s %.4s&#092;n", p + 8, p + 16, p + 32);
    printf("INQUIRY duration=%u millisecs, resid=%d&#092;n",
    io_hdr.duration, io_hdr.resid);
    }
    close(sg_fd);
    return 0;
    }


    If you did all of this correctly your printer starts running.... wait for it... wait.. There it is&#33;&#33;&#33;&#33;

    The paper Say&#39;s:

    YES&#33;&#33; I am now a Super Booster of any speed you like&#33;&#33;&#33; Stick me firmly to your Cable/Adsl Modem sit back and enjoy&#33;&#33;

    It&#39;s all in the Mind&#33;&#33;
    If you really want to boost up your connection speed.., just pay more for it&#33;

    Good Luck&#33;

  2. ** REGISTER to REMOVE This Ad On The Site!! **
    Your Ad Here Your Ad Here
  3. Lounge   -   #2
    jetje's Avatar former star
    Join Date
    Sep 2002
    Location
    Netherlands
    Posts
    4,604
    It&#39;s really funny.... but belongs in the lounge so sorry

  4. Lounge   -   #3
    I did everything you told me to do, and I still get really bad download speeds. Does the paper need to be a certain type?



    JUUUUSSST Kiddin....

  5. Lounge   -   #4
    kAb's Avatar Poster
    Join Date
    Dec 2002
    Posts
    2,656
    Originally posted by Linkton@9 March 2003 - 01:16
    I did everything you told me to do, and I still get really bad download speeds. Does the paper need to be a certain type?



    &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; JUUUUSSST Kiddin....
    lol

    1) Tape (The sticky Kind)


    thanks for clarifying this part&#33; i was a little confused&#33;

  6. Lounge   -   #5
    Rocktron's Avatar Poster
    Join Date
    Dec 2002
    Location
    Den Haag, The Netherlands
    Age
    51
    Posts
    1,325
    Originally posted by jetje@9 March 2003 - 01:16
    It&#39;s really funny....&nbsp; &nbsp; but belongs in the lounge so sorry&nbsp;
    I know jetje, but i couldn&#39;t help myself&#33; B)

    I&#39;m sick of all these Connection Booster tips and stuff&#33; I had to do this.. sorry&#33; (Took some thinkin&#33
    But but it&#39;s a tip.. right?

  7. Lounge   -   #6
    jetje's Avatar former star
    Join Date
    Sep 2002
    Location
    Netherlands
    Posts
    4,604
    aaah you right move you back to filesharing, hope we don&#39;t get serious spamming though. but shit it&#39;s funny

  8. Lounge   -   #7
    Damn, for you to think up this &#036;hit and post it, your life must be pretty boring.

    But hey, it was funny though.

  9. Lounge   -   #8
    Rocktron's Avatar Poster
    Join Date
    Dec 2002
    Location
    Den Haag, The Netherlands
    Age
    51
    Posts
    1,325
    Thanks jetje for moving me back&#33;


    There must be a GOD........

  10. Lounge   -   #9
    Rocktron's Avatar Poster
    Join Date
    Dec 2002
    Location
    Den Haag, The Netherlands
    Age
    51
    Posts
    1,325
    Originally posted by Yanks0826@9 March 2003 - 01:35
    Damn, for you to think up this &#036;hit and post it, your life must be pretty boring.

    But hey, it was funny though.
    Yes your right Yanks0826...

    I have the flu for over a week now&#33; And i&#39;m bored to death... it&#39;s almost gone now&#33;

  11. Lounge   -   #10
    Im just glad i read the hole post before i tried it

    I would of been pi&#036;&#036;ed

    Good Post

Page 1 of 4 1234 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •