For help, the cli mode runs socketserver and maintains a connection with the client. After receiving the request, another common php process needs to notify the cli mode process: "There is a new message, send it to the socket client ". In what way can this sentence be said? Php process Communication ?... For help, the cli mode runs the socket server and maintains the connection with the client,
After receiving the request, another common php process needs to notify the cli-mode process: "There is a new message. Please send it to the socket client ".
In what way can this sentence be said?
Php process communication?
Or does a common php process need to use a socket client to communicate with the socket server process?
Or can they share global variables? Can I directly call the other party's functions? (Although it is unlikely that it is not a process ...)
Reply content:
For help, the cli mode runs the socket server and maintains the connection with the client,
After receiving the request, another common php process needs to notify the cli-mode process: "There is a new message. Please send it to the socket client ".
In what way can this sentence be said?
Php process communication?
Or does a common php process need to use a socket client to communicate with the socket server process?
Or can they share global variables? Can I directly call the other party's functions? (Although it is unlikely that it is not a process ...)
Generally, a socket is created to connect to the socket server and send data to the socket server. Then, the socket server sends data to other clients.
Is your socket server running in php-cli? Is it an open-source socket server or is it written by yourself?