Asked by rwniceing
at 2024-09-03 00:01:54
Point:500 Replies:6 POST_ID:829214USER_ID:12079
Topic:
PHP Scripting Language;Apache Web Server;Miscellaneous Networking
Just want to clarify my concept to some terminology on reading articles.As I know socket is connection and communication between client and server-side that we learnt it before on classical C . On php, there is also socket example such as on the socket tutorial link at http://php.net/manual/en/sockets.examples.php
Question-1, all php apache server TCP/IP are implemented by using exact socket function described on the previous link , and the TCP/IP are including http,stmp, ftp,.....telent ..etc.Is it correct ?
Question-2 Websocket is another type of socket that is different from the socket function above, right? It aims to serve for web application such as chat/Game application since needs to bulid persistant connection. Is it correct ? The persisant connection means forever-active connection
that is NOT the same socket connection which is one-time process (create->connect->disconnect->done getting http pages). Is it right ?
Question-3 I found one apache websocket at https://github.com/disconnect/apache-websocket.
People created that apache websocket code because classical php apache doesn't have websocket function idea before so that it aims to create it for the web application(Game and chat app) for old version php apache server. (Probably If the answer to question-2 above is correct, it imply this question-3 answer is also correct)
Please advise
Rwniceing
Question-1, all php apache server TCP/IP are implemented by using exact socket function described on the previous link , and the TCP/IP are including http,stmp, ftp,.....telent ..etc.Is it correct ?
Question-2 Websocket is another type of socket that is different from the socket function above, right? It aims to serve for web application such as chat/Game application since needs to bulid persistant connection. Is it correct ? The persisant connection means forever-active connection
that is NOT the same socket connection which is one-time process (create->connect->disconnect->done getting http pages). Is it right ?
Question-3 I found one apache websocket at https://github.com/disconnect/apache-websocket.
People created that apache websocket code because classical php apache doesn't have websocket function idea before so that it aims to create it for the web application(Game and chat app) for old version php apache server. (Probably If the answer to question-2 above is correct, it imply this question-3 answer is also correct)
Please advise
Rwniceing