so i have been searching different ways to create client and server program (using visual studios in c++) and i came across RPC (Remote Procedure Call). But i noticed that this also uses a tcp/ip or udp connection.
so what the difference from using RPC to just a basic tcp/ip or udp connection to connect the client and server?
the code is completely different for example in RCP to use tcp:
reinterpret_cast<unsigned char*>("ncacn_ip_tcp"), // Use TCP/IP protocol.
reinterpret_cast<unsigned char*>("localhost"), // TCP/IP network address to use.
reinterpret_cast<unsigned char*>("4747"), // TCP/IP port to use.
but in other programs (eg using WinSock) it requires a lot more code is one better than the other?