SendNetworkString then delay then SendNetworkFile problem
Posted: Sat Feb 04, 2006 1:56 pm
SendNetworkString and SendNetworkFile
ReceiveNetworkData and ReceiveNetworkFile
I am trying to set up a client/server exchange file protocol using
SendNetworkString SendNetworkFile, ReceiveNetworkData and ReceiveNetworkFile.
First I send a string containing the file name using SendNetworkString
followed by sending the file using SendNetworkFile.
This only works (receiver and client run on the same computer) if I use a delay between SendNetworkString and SendNetworkFile
otherwise the receiver side receives the string, some network data and the first part of the file together
in one buffer (using ReceiveNetworkData).
Is there a way to force "send the network buffer" now instead of the delay ?
Frans
ReceiveNetworkData and ReceiveNetworkFile
I am trying to set up a client/server exchange file protocol using
SendNetworkString SendNetworkFile, ReceiveNetworkData and ReceiveNetworkFile.
First I send a string containing the file name using SendNetworkString
followed by sending the file using SendNetworkFile.
This only works (receiver and client run on the same computer) if I use a delay between SendNetworkString and SendNetworkFile
otherwise the receiver side receives the string, some network data and the first part of the file together
in one buffer (using ReceiveNetworkData).
Is there a way to force "send the network buffer" now instead of the delay ?
Code: Select all
SendNetworkString(ClientID, SendString$)
Delay(20)
SendNetworkFile(ClientID, File$)