多进程/线程通讯

 

有两种方式

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万+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章