我想使用苹果的APNS和c#服务。该服务运行完美。 我想要的是苹果的反馈,如果有平底锅发送给苹果。 所以我需要的是来自sslstream的反馈。APNS APPLE C#sslstream响应
任何人都可以帮助我,告诉我如何从sslstream服务器反馈?
在此先感谢
这里是我的代码如何发送STHE锅到苹果服务器:
TcpClient client = new TcpClient(hostname, APNS_PORT);
SslStream sslStream = new SslStream(
client.GetStream(),
false,
new RemoteCertificateValidationCallback(ValidateServerCertificate),
null
);
sslStream.AuthenticateAsClient(hostname, certificatesCollection, SslProtocols.Tls, true);
sslStream.Write(array);
sslStream.Flush();