Where can I find sample client-server program using poll.
Or if someone has it can they share it.
never heard of such a thing, most likely because it would be grossly inefficient. The library at www.DataReel.com contains client/server code ported to both *nix and MS-Windows, but it uses standard sockets.
poll and epoll are like select.
While through select you can establish only 1024 connections using poll and epoll we can establish 200,000 connections
In places where we need more no. of socket poll and epoll are prefered
Though they are only available at Linux.
One sample site I got is
Anyone visiting can refer this it is good.