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