Merge pull request #105 from mtomaschewski/mt-socket

socket: added socket array function variants
socket: check also array size after event processing