Void
03-09-2015, 09:19 AM
Introduction
Sockets are just an easy and powerful way to transfer data between distributed systems. As an example, you can use it to send messages between users connected in a network. You can go further more to tranfer files and play "distributed" games. It's ability to shared between many users is really an important advantage that you may need at any time to build your application.
How does it work ?
In this sample, I started by creating a simple to start program. It's a Server-Client application. First of all, a connection wil be established. The client will type a message to send to the server, the server will capture it, write it's own reply, then send it to the client which will receive it. After that the connection will be closed.
https://anonfiles.com/file/8e895834c72ed294c0381fbf5cc86e38
Sockets are just an easy and powerful way to transfer data between distributed systems. As an example, you can use it to send messages between users connected in a network. You can go further more to tranfer files and play "distributed" games. It's ability to shared between many users is really an important advantage that you may need at any time to build your application.
How does it work ?
In this sample, I started by creating a simple to start program. It's a Server-Client application. First of all, a connection wil be established. The client will type a message to send to the server, the server will capture it, write it's own reply, then send it to the client which will receive it. After that the connection will be closed.
https://anonfiles.com/file/8e895834c72ed294c0381fbf5cc86e38