Is it feasible for the same process to call socket multiple times?

Today, it suddenly occurred to me that in the past, each process only called socket, once to get a scokfd, and then divided into client server,. Is it feasible for the same process to call multiple socket, one of which is used as a listening socket, and the rest to initiate connections to other processes?

Nov.07,2021

Why not

Menu