socket: added socket array function variants
Merge pull request #105 from mtomaschewski/mt-socket

socket: added socket array function variants