distinguishing soket type in server part