APNs client written in C