- Category:
- Linux-Unix program
- Tags:
-
- File Size:
- 4kb
- Update:
- 2017-12-15
- Downloads:
- 0 Times
- Uploaded by:
- 小宝
Description: A<========>B<=========>C<=====>D<======>E
Between the A and the B processes, the process of master socket is passed through the socket of the TCP:
A server side:
Socket -->bind---->listen---->accept send read
B client:
Socket-->connect->read send
Do not understand the ability to man man socket
B and C interact with shared memory
The step is: shmget->shmat-> read and write --->shmdt shmctl directly (delete)
Can man
Message passing between C and D
Msgget-->msgrcv->msgsnd (note that the return value here determines whether to send correctly or not the number of bytes sent)
D uses fork () to create a process E
Interaction between D and E using anonymous pipes
E programs can communicate with famous pipes.
To Search:
File list (Check if you may need any files):
Filename | Size | Date |
---|
B_tcp_client_shm_fifo.c | 2454 | 2017-09-22
|
C_shm_msg.c | 2045 | 2017-09-22
|
D_msg_fork_pipe.c | 3631 | 2017-09-22
|
A_tcp_service.c | 2457 | 2017-09-20 |