Magnetosphere of a neutron star