Easy language How to make sockets (socket), it is more troublesome because it is usually provided by other people easy language module but there are
A weakness Easy module developer is basically a personal nature some people will prank write some illegal character code, then this will
Create a security risk, then go back to the topic of how we write the socket application, but first I recommend encapsulation first.
is a simple client/server call Easy Module sample code, I am not a qualified easy programmer and
is a programmer on. NET, so in my encapsulation naming is followed. NET on the socket, but for
You don't have much impact on the code.
Socket Server:
Socket Client:
The code above is just a code example that applies the easy module
The code above is a partial code in the code that exposes the easy module. SendTo is generally used for UDP broadcast and datagram
gethostname host name && Makeword merging short integers
Easy module to expose some of the functions, but I do not want to pull so much, anyway, everyone took their own research
I've already provided some sample code, and everything below needs to be referenced by you on MSDN documentation
Baidu Network disk:http://pan.baidu.com/s/1bnBBkLp Reprint Please indicate the source
Easy Language Network programming