enrique1 Member Licensed User Longtime User Jun 17, 2011 #1 Hi all, I am working with an AsyncStream that connect to a Windows Shell. Can I read the text that is introducing when press Enter in a String variable? I imagined use something like this: "Streams.Read" and doesn't exist. Thx!
Hi all, I am working with an AsyncStream that connect to a Windows Shell. Can I read the text that is introducing when press Enter in a String variable? I imagined use something like this: "Streams.Read" and doesn't exist. Thx!
Erel B4X founder Staff member Licensed User Longtime User Jun 17, 2011 #2 Did you see the tutorial about AsyncStreams? Basic4android Search: asyncstreams tutorial It includes an example of reading strings from the stream. Upvote 0
Did you see the tutorial about AsyncStreams? Basic4android Search: asyncstreams tutorial It includes an example of reading strings from the stream.
enrique1 Member Licensed User Longtime User Jun 19, 2011 #3 Erel, thank you very much. Yes, I saw the excelent tutorial but I just need to read more slowly... I hadn't see this sub: AStreams_NewData. Sorry for the inconvenience! Upvote 0
Erel, thank you very much. Yes, I saw the excelent tutorial but I just need to read more slowly... I hadn't see this sub: AStreams_NewData. Sorry for the inconvenience!
canalrun Well-Known Member Licensed User Longtime User Jun 19, 2011 #4 enrique1 said: Erel, thank you very much. Yes, I saw the excelent tutorial but I just need to read more slowly... I hadn't see this sub: AStreams_NewData. Sorry for the inconvenience! Click to expand... I have a question that fits right in here concerning async streams. I would like to create a small set of subroutines using the Server Socket on a Android device that would implement a tiny FTP server good enough just to transfer a file back and forth to PC using one of the standard FTP clients on the PC. I am wondering during a file transfer - say from the PC to the Android device. How do you know when the transfer is complete? Will the input stream announce NewData as it receives partial results or will it only announce NewData when all the data has been received. I think I read the answer to this once, but I cannot find it again. On transferring a file from the PC to the Android device, will the PC FTP client close the data socket to announce transfer complete? Or, will it announce "transfer complete" via the FTP command socket? Is there anything within the FTP protocol that is transferred along with the data to announce end of file type conditions? I have not been able to find a reference to the nuts and bolts of simple FTP transfer protocols. I have seen the RFC spec, but this is way beyond the scope of what I need. Thanks for any insight, Barry. Upvote 0
enrique1 said: Erel, thank you very much. Yes, I saw the excelent tutorial but I just need to read more slowly... I hadn't see this sub: AStreams_NewData. Sorry for the inconvenience! Click to expand... I have a question that fits right in here concerning async streams. I would like to create a small set of subroutines using the Server Socket on a Android device that would implement a tiny FTP server good enough just to transfer a file back and forth to PC using one of the standard FTP clients on the PC. I am wondering during a file transfer - say from the PC to the Android device. How do you know when the transfer is complete? Will the input stream announce NewData as it receives partial results or will it only announce NewData when all the data has been received. I think I read the answer to this once, but I cannot find it again. On transferring a file from the PC to the Android device, will the PC FTP client close the data socket to announce transfer complete? Or, will it announce "transfer complete" via the FTP command socket? Is there anything within the FTP protocol that is transferred along with the data to announce end of file type conditions? I have not been able to find a reference to the nuts and bolts of simple FTP transfer protocols. I have seen the RFC spec, but this is way beyond the scope of what I need. Thanks for any insight, Barry.
Erel B4X founder Staff member Licensed User Longtime User Jun 20, 2011 #5 I'm not familiar with the FTP protocol. NewData is raised whenever the network driver has data available for reading. Did you try Basic4android Search: B4AServer ? It will make it easy to transfer files between devices and a desktop. Upvote 0
I'm not familiar with the FTP protocol. NewData is raised whenever the network driver has data available for reading. Did you try Basic4android Search: B4AServer ? It will make it easy to transfer files between devices and a desktop.