Write a utility function in python-packages/atri-core/src/atri-core/rec_ipc_msg.py called def rec_ipc_msg().
The rec_ipc_msg() creates a domain named socket server in unix based system. The socket accepts only one connection and is open until the client socket closes the connection.
The rec_ipc_msg() creates a named pipe server in windows. The pipe server accepts only one connection and is open until the client closes the connection.
Write a test case that uses send_ipc_msg from python-packages/atri-core/src/atri-core/send_ipc_msg.py as client and rec_ipc_msg as server.
Requirements
python-packages/atri-core/src/atri-core/rec_ipc_msg.py
calleddef rec_ipc_msg()
.rec_ipc_msg()
creates a domain named socket server in unix based system. The socket accepts only one connection and is open until the client socket closes the connection.rec_ipc_msg()
creates a named pipe server in windows. The pipe server accepts only one connection and is open until the client closes the connection.send_ipc_msg
frompython-packages/atri-core/src/atri-core/send_ipc_msg.py
as client andrec_ipc_msg
as server.