Periodic solutions of dissipative functional-differential equations