Well within the server file, I needed to commented out the following part. Everything works now.
}
close(fd);
//close(sd);
}
Type: Posts; User: Mankthetank19
Well within the server file, I needed to commented out the following part. Everything works now.
}
close(fd);
//close(sd);
}
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.
I am not talking about the commands of cp and moving commands. I am trying to run a ftp server client program.
Here is what I have:
I have a tosscatch.h
/* tosscatch.h
*/
/*****************************************************************************/
/*** tosscatch.h ...
I don't think tossdir will work. I am trying to "socket program"
Why is that - please explain?
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...
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
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...
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...
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...
Thanks for the information and reason for the code error - Thanks again!
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);
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...
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...
Thanks again for all the suggestions - I will try and remember it for next time.
Thanks again!
If anybody wants to know the end code - here it is
Thanks for the help everyone!
//************************************************************************
#include <stdio.h>
#include...
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;...
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...
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...
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...
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...
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...