开发者

IPC on Visual Studio

I'm trying to use IPC Unix mechanisms (pipes, shared memory, sockets) into Visual Studio IDE (still using C and C++ files), but I'm finding it hard to know which header files I should include in order 开发者_如何学JAVAto work with, let's say for example, a fork() command, or similar.

I've tried googling it but I didn't have any luck.

Thank you very much!

Silvio.


See winsock.h for sockets. Shared memory can be done with memory-mapped files. Googling "windows shared memory" gives several relevant results. Pipes are supported, search MSDN for "pipes" and the 'CreatePipe' function. Fork is not supported - there are some hacks but they are not particularly easy/efficient. Probably better to redesign to avoid requiring fork.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜