Refactor SocketUxdNb to SocketLocalNb, works seamlessly between Win and Linux