有两种方式
1。共享内存(ShareMemory) ,在系统内开辟空间,对于系统状态未知的情况比较适用,比如木马等
2。C/S模式,通常是通过Socket实现,其中对于Socket的解释在Wiki上看了一段,感觉写的很好,很有意思,直接原封摘过来,如下
The term Internet sockets is also used as a name for an application programming interface (API) for the TCP/IP protocol stack, usually provided by the operating system. Internet sockets constitute a mechanism for delivering incoming data packets to the appropriate applicationprocess or thread, based on a combination of local and remote IP addresses and port numbers. Each socket is mapped by the operational system to a communicating application process or thread.