Using poll to exchange data