Easy language network programming, easy language

Source: Internet
Author: User

Easy language network programming, easy language

How to Implement Socket in easy language? It is more troublesome because it is generally provided by others.

Vulnerabilities, easy module developers are basically personal. Some people may prank and write some illegal code.

This poses a security risk. Let's go back to the question of how to write a Socket application, but first I suggest encapsulating it.


Is a simple example code for Client/Server to call the easy module. I am not a qualified easy programmer

Is a programmer on. NET, so in my encapsulation naming, according to some Socket style on. NET, but

It does not have much impact if you look at the code.

Socket server:


Socket Client:


The above code is just a sample code that applies this module.


The above code is part of the code in the Public Open Module. SendTo is generally used for UDP broadcast and Datagram


GetHostName: Use the Host Name & MakeWord to merge short integers.


Some functions are made public in the module, but I don't want to talk so much about them either.

I have provided some sample code. You need to refer to the documentation on MSDN for all the following.

Baidu Network Disk: http://pan.baidu.com/s/1bnBBkLp reproduced please indicate the source

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.