both. if you know exactly the person who might have the same research interest with you, it is better to send your cv, referees, whatever, directly to him/her. he/she will consider your application and decide if he/she want you to process the formal application.