I would like to know if it is possible to create unix domain socket, with Socket_Stream configuration where server and client binds their own sockets so that they could be able to send their sockaddr information.
In other words I would like to send sockaddr from one side to another. With that I would like to control and distinguish multiple clients on the server side.
However as I understand you cannot receive sockaddr information in connection-mode. In other words you cannot use accept-connect while sending Unix socket sun_path information as sockaddr. Is it right conclusion?
As you can see in question below, It is possible to send sockaddr by binding both sockets and using sendto recv function. But Is it possible to use it also with connect-accept mod. since I could not be able to run that example with SOCK_STREAM (connect accept doesn't allow SOCK_DGRAM) configuration. Is there a way to do this
Sockets, Unix Domain UDP C++ recvfrom fail to populate the source address