Added server codes

added method in CommWrapper used by server