Socket send Receive data instance

Source: Internet
Author: User
Tags socket

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.