In Windows named pipe, how to use the CreateNamedPipe , ConnectNamedPipe , DisconnectNamedPipe and CloseHandle calls CreateNamedPipe ?
I am making a server application that connects to a client application that connects and disconnects to a channel several times through a session.
When my records fail because the client is disconnected, I should call DisconnectNamedPipe , CloseHandle or nothing on my descriptor.
Then, to accept the new connection, do I have to call CreateNamedPipe and then ConnectNamedPipe or just ConnectNamedPipe ?
I would very much like to explain the different states that my pipe may be as a result of these calls, because I did not find this elsewhere.
Additional Information:
Language: Python using the win32pipe , win32file and win32api .
Pipe settings: WAIT, without overlap, downstream.
source share