How to implement a client-server application licensing?

Hello!
I had the task of creating a server Windows application.
The duties of the server include:
- the server must store the session user. And at a time to allow only one session
- the server must disable/enable to perform certain actions for a specific user in the application
- the server must store the error logs or other service information sent by the user
- the server must provide the ability to automatically update apps.

I client-server interaction never done so in detail. If there are suitable patterns for such problems? How to write a server if the application is written in .Net? What kind of message is better to exchange: json/xml byte array? Which network technology to use? What for these purposes to choose a hosting?
September 19th 19 at 00:21
2 answers
September 19th 19 at 00:23
Work with DBMS assumes?
What types of data will be transmitted over the network?
On how critical the data loss during transmission or delivery to the customer?
1. Yes, customer data will be stored in the DBMS.
2. From client to server will be coming :
logs in the form of text fields, apparently
- different kinds of access requests, queries, version. What type of I would like to know, perhaps there is a standard solution?
From the server to the client :
- replies to the access request (Yes/no)
- line to download the updates
3. The data must either fully reached or not reached. If not reach, then request again. The procedure, as I understand it, important because there may be cases of multiple simultaneous requests from the same user. - Sydney commented on September 19th 19 at 00:26
: Well then, look, let's start from the bottom up. since the order is important and the integrity of the sent then only the TCP Protocol.
If you are going to transfer binary data over the network such as pictures, music. Then use json.
I think the most easy to implement REST over HTTP using some framework with json support. - Mittie22 commented on September 19th 19 at 00:29
Thank you!
Did I understand correctly that in this case, the duty to store data about the client's session is assigned to the database?
Will justified the use of HTTPS for more security?
In this case, to implement a server and it will be enough to rent a virtual hosting and not dedicated server? - Sydney commented on September 19th 19 at 00:32
Well, depending on what framework you will take if the php session, it will store its way. HTTPS will justify over. reasonable aisles. well here is dependent on the number of users. and of course enough - Mittie22 commented on September 19th 19 at 00:35
September 19th 19 at 00:25
Be sure to look in the direction of the WCF. There are TCP and HTTP, and TLS support (at least on top of TCP, even HTTP), and automatic serialization-deserialization, and asynchronous calls and support sessions...

Inside WCF uses SOAP messages although there is to try, you can encode anything you like.

Find more questions by tags HostingComputer networks.NETProgramming