socket: added socket array function variants