I started learning the world of sockets. I would like to ask the experts how to write the code so that the server sends a command to the client at the appointed time, in response to which the client would perform certain actions: for example, would open any file on command from the server "open" which is sent in schedule mode. Please help! Or at least advise the literature, which describes in detail the performance of sockets ... Do not be indifferent!)

  • Sockets just transfer bytes back and forth and have nothing to do with files or commands — these are two unrelated tasks. Associating Baitics with teams is the third separate task. Decide which of these three problems you have difficulty with, and specify the question - andreymal
  • I want to do just that. The server will send a packet of data to the client at a certain time. The client will accept this data packet and, according to the script that the client will have, perform a certain number of permanent actions, without variable values. - BrightOS
  • That's good, and now tell me what exactly doesn’t work from what has been written - andreymal
  • Oh yeah, I did not immediately notice, but doing something on a schedule is the fourth task, not related to the previous three. In general, the question is too general - andreymal

0