development push SSL Certificate与production push SSL Certificate的区别

Productiondevelopment用的push的服器不同
p
dev
是:$apnsHost = 'gateway.sandbox.push.apple.com';
pro
是:$apnsHost = 'gateway.push.apple.com';


在测试程序pushmebaby中:

dev是:

result = MakeServerConnection("gateway.sandbox.push.apple.com", 2195, &socket, &peer);
result = SSLSetPeerDomainName(context, "gateway.sandbox.push.apple.com", 30);

pro是:

result = MakeServerConnection("gateway.push.apple.com", 2195, &socket, &peer);
result = SSLSetPeerDomainName(context, "gateway.push.apple.com",22);


你可能感兴趣的:(socket,ssl,服务器,测试)