Apple の APNS を ac# サービスで使いたいです。サービスは完璧に動作します。私が欲しいのは、鍋をアップルに送った場合のアップルからのフィードバックです。だから私が必要としているのは、sslstream からのフィードバックです。
誰でも私を助けて、sslstream内のサーバーからフィードバックを得る方法を教えてもらえますか?
前もって感謝します
フライパンをAppleサーバーに送信するコードは次のとおりです。
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();