When to use socket.*, and network.*

I don’t know what’s the difference except socket has more specific fields

but what are the situations that suits these 2(socket and network)? When should I use each?