संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
gpg::ConnectionResponse
#include <nearby_connection_types.h>
कनेक्शन के अनुरोध का जवाब.
खास जानकारी
सार्वजनिक प्रकार
|
StatusCode
|
enum status फ़ील्ड में स्टेटस कोड की वैल्यू दिखाई गई.
|
सार्वजनिक विशेषताएं
|
payload
|
std::vector< uint8_t >
पसंद के मुताबिक बनाया गया मैसेज, जिसे ऐप्लिकेशन, कनेक्शन के जवाब के साथ भेज सकता है.
|
remote_endpoint_id
|
std::string
उस रिमोट एंडपॉइंट का आईडी जिस पर कनेक्शन का अनुरोध भेजा गया था.
|
status
|
स्टेटस कोड से पता चलता है कि कनेक्शन स्वीकार किया गया या नहीं.
|
सार्वजनिक प्रकार
StatusCode
gpg::ConnectionResponse::StatusCode
status
फ़ील्ड में स्टेटस कोड की वैल्यू दिखाई गई.
सार्वजनिक विशेषताएं
पेलोड
std::vector< uint8_t > gpg::ConnectionResponse::payload
पसंद के मुताबिक बनाया गया मैसेज, जिसे ऐप्लिकेशन, कनेक्शन के जवाब के साथ भेज सकता है.
remote_endpoint_id
std::string gpg::ConnectionResponse::remote_endpoint_id
उस रिमोट एंडपॉइंट का आईडी जिस पर कनेक्शन का अनुरोध भेजा गया था.
स्थिति
StatusCode gpg::ConnectionResponse::status
स्टेटस कोड से पता चलता है कि कनेक्शन स्वीकार किया गया या नहीं.
इस पेज पर मौजूद कॉन्टेंट और कोड सैंपल कॉन्टेंट के लाइसेंस में बताए गए लाइसेंस के हिसाब से हैं. Java और OpenJDK, Oracle और/या इससे जुड़ी हुई कंपनियों के ट्रेडमार्क या रजिस्टर किए हुए ट्रेडमार्क हैं.
आखिरी बार 2025-07-27 (UTC) को अपडेट किया गया.
[null,null,["आखिरी बार 2025-07-27 (UTC) को अपडेट किया गया."],[],[],null,["# gpg::ConnectionResponse Struct Reference\n\ngpg::ConnectionResponse\n=======================\n\n`#include \u003cnearby_connection_types.h\u003e`\n\nA response to a connection request.\n\nSummary\n-------\n\n| ### Public types ||\n|-------------------------------------------------------------------------------------|---------------------------------------------------------|\n| [StatusCode](#structgpg_1_1_connection_response_1a120a0d5fbf17843345f96c502c05c17a) | enum Status code values returned in the `status` field. |\n\n| ### Public attributes ||\n|---------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [payload](#structgpg_1_1_connection_response_1a57041d0a06a05aa78d5abaf80fcbdb05) | `std::vector\u003c uint8_t \u003e` A custom message that the app can send with the connection response. |\n| [remote_endpoint_id](#structgpg_1_1_connection_response_1a87f9712d85f7ad126681fdf3b63fe3c0) | `std::string` The ID of the remote endpoint to which a connection request was sent. |\n| [status](#structgpg_1_1_connection_response_1a0dce7adbcc19b501e6d6ce62da7fb64d) | [StatusCode](/games/services/cpp/api/struct/gpg/connection-response#structgpg_1_1_connection_response_1a120a0d5fbf17843345f96c502c05c17a) The status code indicating whether the connection was accepted. |\n\nPublic types\n------------\n\n### StatusCode\n\n```c++\n gpg::ConnectionResponse::StatusCode\n``` \nStatus code values returned in the `status` field.\n\nPublic attributes\n-----------------\n\n### payload\n\n```c++\nstd::vector\u003c uint8_t \u003e gpg::ConnectionResponse::payload\n``` \nA custom message that the app can send with the connection response. \n\n### remote_endpoint_id\n\n```c++\nstd::string gpg::ConnectionResponse::remote_endpoint_id\n``` \nThe ID of the remote endpoint to which a connection request was sent. \n\n### status\n\n```c++\nStatusCode gpg::ConnectionResponse::status\n``` \nThe status code indicating whether the connection was accepted."]]