有兩種方式
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.