Connecting 2 arduinos with esp8266

Hi, i've bought 2 esp recently and i have 2 arduinos, (uno & due).
i'd like to make a wireless connection. The arduino uno should sample an input (analogread), and send it to the due when requested.
i use the esp8266wifi library but my first problem is: who is the server, the client and the access point?