多進程/線程通訊

 

有兩種方式

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.

發佈了44 篇原創文章 · 獲贊 3 · 訪問量 7萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章