Thats not a bad idea, thanks for that! I'll get right on that now, but in the meantime am I correct if I were to go along the lines of:
void echoFile(int fd, char
*filename) {
FILE*...
Type: Posts; User: purpleturtle_97
Thats not a bad idea, thanks for that! I'll get right on that now, but in the meantime am I correct if I were to go along the lines of:
void echoFile(int fd, char
*filename) {
FILE*...
Sorry I haven't been very clear here.
EDIT:
I have already created the socket in the main method, which basically results in:
int connection_sckt;
connection_sckt = accept(list_s, NULL,...
I've been stuck on this for hours because I really don't understand file descriptors and how successfully print a file to one.
Basically, I want to be able to open a file and then echo its...