Search Results

Search: Posts Made By: teo
Forum: Programming 05-09-2005
8,357
Posted By teo
The fact is that when you run the 2 function...
The fact is that when you run the 2 function alone, the send_file function finishes while the get_file function waits. When send_file finishes immediatly halt the program so closing sockets! That's...
Forum: Programming 05-09-2005
8,357
Posted By teo
Yes I made a mistake, It doesn't send EOF at all,...
Yes I made a mistake, It doesn't send EOF at all, sorry for my bad english!
But as a matter of fact if you build a client and a server only with those two function(send_file and get file) it works,...
Forum: Programming 05-06-2005
8,357
Posted By teo
Don't mind about writen you can get rid of it and...
Don't mind about writen you can get rid of it and replace with write, it will work fine. When read from the file and gets EOF the send_file function send it through the socket to get_file and recv...
Forum: Programming 05-03-2005
8,357
Posted By teo
MSG_WAITALL beaves exactly as you said, wait for...
MSG_WAITALL beaves exactly as you said, wait for the exact amount of data you have requested, but can return fewer data if an error occur, a signal is caught, or for connection shutdown. In the...
Forum: Programming 05-03-2005
8,357
Posted By teo
Sorry... here it goes the getfile and sendfile...
Sorry...
here it goes the getfile and sendfile function:

void
get_file(FILE *fp, int sockfd){
int n;
char buf[MAXSIZE];
...
Forum: Programming 04-29-2005
8,357
Posted By teo
Problems with file descriptor
Hi,
look at the following code:
The client after estabilishing a connection with the server does the following:
if ((peter = fopen(argv[1], "r")) == NULL){
printf("errore\n");
...
Forum: Programming 04-01-2005
18,113
Posted By teo
Thanx
Ok, actually I did some error but now it works.
Thanks!!!
Forum: Programming 03-22-2005
18,113
Posted By teo
File transfer using socket
Hi I need to transfer a whole file between a client ad a server. How can I do that?
Using read and write whit sockets I have problem with buffer size of both client and server. I tried to send the...
Showing results 1 to 8 of 8

 
All times are GMT -4. The time now is 07:24 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy