Page 1 of 1
					
				Sendnetworkfile/receivenetworkfile
				Posted: Fri Mar 30, 2007 12:24 am
				by Matt
				A client is sending the server a file.
The server needs to know the name of the file before saving it that was sent.
How can I do this?
			 
			
					
				
				Posted: Fri Mar 30, 2007 2:00 am
				by Flype
				why not just sending the filename with a SendNetworkString() before or after sending the file ?
			 
			
					
				
				Posted: Fri Mar 30, 2007 2:16 am
				by Matt
				Okay, it works I guess. Thanks  

 
			 
			
					
				
				Posted: Fri Mar 30, 2007 10:21 am
				by Anden
				Okay, it works I guess
Well, most of the time 

.
But networks are sometimes tricky and in very rare cases it will happen, that  one telegram overhauls the other.
In other words, the SendNetworkFile() could be faster than the SendNetworkString().
Thus, to be on the safe side, the sender must wait for an acknowledge of the filename from the receiver. Afterwards the filetransfer can start.
Let's say the SendNetworkFile() command is a little bit incomplete 
