What is the need of socket if both the server and client process on same machine? -
i relatively new programming , attempting self learn socket programming. per understanding, socket needed @ both endpoints if process (say server process) needs communicate process (say client process) on network.
if server , client processes on same machine, why need sockets because streams or datagrams not going on network? it's within same machine. can please clarify reason this?
then how 2 processes on same machine communicate without using sockets?
...
that's right, sockets way 2 processes communicate regardless of whether it's on network or within same machine. could invent other mechanisms communication within same machine (and there plenty), why if sockets serve purpose fine?
Comments
Post a Comment