Home > Software engineering >  More client software pieces of writing data to the same file
More client software pieces of writing data to the same file

Time:09-17

I use VB to write a client software, run separately in several computers, client software will write data to the server in a file, in order to avoid two or more client to write data to a file and error at the same time, need a mutex mechanism, is before writing data to the file, check if other clients are written to, if it is, just waiting for the written before you write, how can I get to do this, check the other client is written or written has been finished?

CodePudding user response:

General this architecture can use similar queue processing method, to write or public database directly, and then writing a special handler for the server, click submit order to digest,

CodePudding user response:

What is the agreement? HTTP? The FTP? The SAMBA?

CodePudding user response:

Can write a server program on the server, maintains a queue, using winsock and client communication,
What the client want to write don't write files directly, but send messages to this application, the server program to write,
  • Related