Sorry for the storyline, which sounds like an even darker Harry Potter title.
I am trying to use the AS3 Socket class to write a simple FTP program for export as an AIR application in Flex Builder 3. I use an FTP server on my local network to test the program. I can successfully connect to the server (the simple part), but I can not send any commands. I'm sure you should use the ByteArray class to send these commands, but there is some important piece of information that I'm missing, apparently. Does anyone know how to do this? Thank you Dave
FTP UTF. ANSI/ASCII. writeMultiByte writeUTFBytes, , Linux. .
, , , ( ).
, , crossdomain, , HTTP. , , 843 .
Adobe:
SWF . 9,0,115,0 SWF 1024 .HTTP . 9,0,115,0 HTTP, /crossdomain.xml 80, 1024 .
SWF . 9,0,115,0 SWF 1024 .
HTTP . 9,0,115,0 HTTP, /crossdomain.xml 80, 1024 .
, , FTP , .
, this .
- , - TELNET ( FTP).
FTP-, , . 843 , Flash . , FTP:
2 : . USER, PASS, CWD STOR. - , ByteArray. PASV , .
Mac, Safari, FF, socket.close(), . Windoze . , Event.CLOSE , SERVER . liveocs.
. , Mac, Windows. , , , - Windows, , Flash Player, .
?
, . , , . Socket , ByteArray.
, ? ? , , ? , , .
screencast on gotoAndLearn POP3. , , .
100% , ? , HTTP . . , FTP.
FTP CRLF . "\ r\n" "\n" .
CrossDomain FTP-, .
From what I have gathered, you need to send each team one at a time and check the answer before moving on. You should get something from ProgressEvent.SOCKET_DATA
Try this and see what you get in return.
socket.writeUTFBytes("USER "+user+"\n"); socket.flush();
Then you read the answer like this:
var response:String = mySocket.readUTFBytes(mySocket.bytesAvailable);
Source: https://habr.com/ru/post/1696869/More articles:Every Linux distribution comes with gcc / g ++ 4. * nowadays? - c ++How to determine the focus focus application level in Qt 4.4.1? - c ++IIS crashes when serving an ASP.NET application under heavy load. How to fix the problem? - debuggingHow to implement Edit → Copy menu in C # /. Net - user-interfaceHas anyone used the Hessian binary remote access protocol to connect applications using Java and .NET? - javaWCF Datacontract free serialization (3.5 SP1) - .netTrying to send an HTTP request through sockets - httpAny recommendation for a good enough Winforms GUI? - designHow do I make Flex RIA content available to search engines like Google? - flexAre there any JSF component libraries that generate semantic and cross-browser HTML markup? - jsfAll Articles