קל לארגן דפים בעזרת אוספים
אפשר לשמור ולסווג תוכן על סמך ההעדפות שלך.
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
.
מאפיינים ציבוריים
מטען ייעודי (payload)
std::vector< uint8_t > gpg::ConnectionResponse::payload
הודעה מותאמת אישית שהאפליקציה יכולה לשלוח עם תגובת החיבור.
remote_endpoint_id
std::string gpg::ConnectionResponse::remote_endpoint_id
המזהה של נקודת הקצה המרוחקת שאליה נשלחה בקשת חיבור.
status
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."]]