On the internet often about the problem of the Socket ~ Tutorials ~ but are very official, in fact, we all know the code (F1 Help document), just because there is no test socket server. have been unable to do the test and further research. Flash, new community +mt:g,{,p+?b7z.
Today opened a long time no use of "easy language", a simple socket server. In fact, I do not know is not a socket server, just listening to the port, receive data from the client, send data to the client and so on. However, in the flash socket routines to connect and send the receiver successfully, so it should be considered. (PS: Easy language, a Chinese programming software, do not laugh at me, hehe, I am not a science background, no culture, but I think this software for like me just need to help learn the premise of Flash, is enough, here also as an easy language to do an ad, How to say is also the thing that the countrymen develops)
This small dongdong is very simple, when the start of the automatic monitoring of 8080 ports, when the Flash connection will show the client IP, when the flash send data to the server , it will receive the data broadcast to all clients (can do simple chat room)
Upload an instance of flash here casually. Modified by the flash routines only. After running, it will directly connect to port 8080 of this machine and send a text to the server when the connection is successful. The server then returns the text ... You can see it in the Output window.