Search:

Type: Posts; User: Mankthetank19

Search: Search took 0.01 seconds.

  1. Replies
    13
    Views
    1,610

    Well within the server file, I needed to...

    Well within the server file, I needed to commented out the following part. Everything works now.



    }
    close(fd);
    //close(sd);
    }
  2. Replies
    13
    Views
    1,610

    All I know if the main loop is altered in the...

    All I know if the main loop is altered in the client program, I believe the ./tossfile host IP tossfile.c catchfile.c will work but I don't know what to alter.
  3. Replies
    13
    Views
    1,610

    I am not talking about the commands of cp and...

    I am not talking about the commands of cp and moving commands. I am trying to run a ftp server client program.
  4. Replies
    13
    Views
    1,610

    Here is what I have: I have a tosscatch.h ...

    Here is what I have:

    I have a tosscatch.h


    /* tosscatch.h
    */

    /*****************************************************************************/
    /*** tosscatch.h ...
  5. Replies
    13
    Views
    1,610

    I don't think tossdir will work. I am trying to...

    I don't think tossdir will work. I am trying to "socket program"
  6. Replies
    13
    Views
    1,610

    Why is that - please explain?

    Why is that - please explain?
  7. Replies
    13
    Views
    1,610

    Sending two files in one command?

    IS there a quick way to send two files below in one command?

    ./tossfile hostip file1.c
    ./tossfile hostip file2.c

    while I am running the server as ./catchfile

    I can send one file but for...
  8. Replies
    17
    Views
    2,318

    I think I got the code to work - I will update...

    I think I got the code to work - I will update everyone tomorrow when I try it in my lab environment. Thanks again for the assistance and help - especially SALEM
  9. Replies
    17
    Views
    2,318

    I decided to go back to school for an Information...

    I decided to go back to school for an Information Systems Security Certificate and one of the labs I take every week involves programming in C. It is a whole new world to me and I am just wondering...
  10. Replies
    17
    Views
    2,318

    Thanks for the help - when I get home I will look...

    Thanks for the help - when I get home I will look at what you did.

    I will also research select.

    I like your code of not having code within all those breaks like I originally had (all those...
  11. Replies
    17
    Views
    2,318

    Thanks for the help Salem but I am having a hard...

    Thanks for the help Salem but I am having a hard time understanding you - forgive me, I am still new with this language

    for your first suggestion - I don't understand what I need to do to if...
  12. Replies
    6
    Views
    26,009

    Thanks for the information and reason for the...

    Thanks for the information and reason for the code error - Thanks again!
  13. Replies
    6
    Views
    26,009

    It seems if i change ’\0’ to '\0' - it can...

    It seems if i change ’\0’ to '\0' - it can compile. Is this correct?

    from:
    memset(&(my_addr.sin_zero), ’\0’, 8);
    to
    memset(&(my_addr.sin_zero), '\0', 8);
  14. Replies
    6
    Views
    26,009

    Stray Error while compiling

    Hello, I am still new with programming in C through Fedora terminal.

    I am trying to get an early start on my lab that is on Wed. - so I copy and paste the code and I get Stray errors. I don't...
  15. Replies
    17
    Views
    2,318

    Well I thought I could get the program running...

    Well I thought I could get the program running properly but:

    I can compile the code but it is not running properly. When I run the code on the server (terminal 1) and the client on terminal 2 and...
  16. Replies
    17
    Views
    2,318

    Thanks again for all the suggestions - I will try...

    Thanks again for all the suggestions - I will try and remember it for next time.

    Thanks again!
  17. If anybody wants to know the end code - here it...

    If anybody wants to know the end code - here it is
    Thanks for the help everyone!



    //************************************************************************
    #include <stdio.h>
    #include...
  18. Replies
    17
    Views
    2,318

    Thank you for that - I thought I was missing one...

    Thank you for that - I thought I was missing one down at the bottom around the line 150 but it is suppose to be:



    // main loop
    for(;;)
    {
    timeout.tv_sec = 15;
    timeout.tv_usec = 0;...
  19. Replies
    17
    Views
    2,318

    Receiving a syntax error

    Hello, the error I am receiving is below:

    I think I am missing a "{" somewhere but I can't find out where or I can be totally wrong. Does anybody have any suggestions? Thanks!



    lab8a.c: In...
  20. Well I finally got the code working but I didn't...

    Well I finally got the code working but I didn't get it to convert to binary :(

    How can I express this operation of decimal to binary like this.
    ex:
    IP - 172.16.10.15
    If I did each number at a...
  21. well my code from decimal to binary didn't work...

    well my code from decimal to binary didn't work because cout and cin are not found in C but found in C++. Does anybody have any suggestions because I am getting really frustrated??

    I know there...
  22. Wow, quick replies. Thank you! Here is the...

    Wow, quick replies. Thank you!

    Here is the other code I am trying to incorporate.

    Maybe I am doing things wrong since I am a newb - I am trying to break things down one at a time instead of...
  23. Converting 32 bit binary IP to decimal IP (vice-versa)

    Hello,

    I am new to this site and the program language of C.

    I am trying to create a program that would allow me to convert 32 bit binary (in chunks of 8 bits) ip to decimal ip. Also, I am...
Results 1 to 23 of 23