...- while doing socket programming if TCP is always stream and UDP is always datagram?
Shouldn't it be enough to specify either just the protocol or just the type to know either?
I know there's some examples online of using PHP as a websocket server. I just don't understand how this works.
How can a .php file be constantly listening for connections as if it was a running process?
I've worked with other socket servers in C#, Java, etc. But they were all running...