GCKNetworkAddress क्लास
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
ऐसा ऑब्जेक्ट जो नेटवर्क आईपी पते को दिखाता है.
इस ऑब्जेक्ट को बदला नहीं जा सकता.
- से
- 4.2
NSObject, <NSकॉपी>, और <NSSecureCoding> को इनहेरिट करता है.
डिफ़ॉल्ट इनिशलाइज़र का इस्तेमाल करने की अनुमति नहीं है.
- (instancetype) initWithType: |
|
(GCKNetworkAddressType) |
type |
ipAddress: |
|
(nullable NSString *) |
ipAddress |
|
|
| |
दिए गए पते के टाइप और आईपी पते के साथ GCKNetworkAddress बनाता है.
- Parameters
-
type | The address type. |
ipAddress | The IP address, in textual form. May be nil to indicate the wildcard ("any") address. |
- (instancetype) initWithType: |
|
(GCKNetworkAddressType) |
type |
addressData: |
|
(nullable NSData *) |
addressData |
|
|
| |
दिए गए पते के टाइप और रॉ पते के साथ, GCKNetworkAddress बनाता है.
- Parameters
-
type | The address type. |
addressData | An NSData object containing the appropriate address structure (e.g., struct in_addr or struct in6_addr). For the GCKNNetworkAddressTypeIPC, the data is expected to be a UTF8 encoding. |
दिए गए टाइप का वाइल्डकार्ड पता बनाता है.
दिए गए टाइप का लूपबैक पता बनाता है.
यह आईपीवी4 ब्रॉडकास्ट पता बनाता है.
- (GCKNetworkAddressType) type |
|
readnonatomicassign |
NSData के तौर पर नेटवर्क का पता, जिसमें सही पता स्ट्रक्चर (उदाहरण के लिए, struct in_addr या struct in6_addr) होता है.
पता टाइप IPC के लिए, यह फ़ील्ड एक UTF8 एन्कोडिंग है.
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 2025-07-25 (UTC) को अपडेट किया गया.
[[["समझने में आसान है","easyToUnderstand","thumb-up"],["मेरी समस्या हल हो गई","solvedMyProblem","thumb-up"],["अन्य","otherUp","thumb-up"]],[["वह जानकारी मौजूद नहीं है जो मुझे चाहिए","missingTheInformationINeed","thumb-down"],["बहुत मुश्किल है / बहुत सारे चरण हैं","tooComplicatedTooManySteps","thumb-down"],["पुराना","outOfDate","thumb-down"],["अनुवाद से जुड़ी समस्या","translationIssue","thumb-down"],["सैंपल / कोड से जुड़ी समस्या","samplesCodeIssue","thumb-down"],["अन्य","otherDown","thumb-down"]],["आखिरी बार 2025-07-25 (UTC) को अपडेट किया गया."],[],["The `GCKNetworkAddress` class represents an immutable network IP address. Key actions include: constructing addresses with specified type and IP/raw address using `initWithType:ipAddress:` or `initWithType:addressData:`, creating wildcard addresses with `wildcardAddressOfType:`, loopback addresses with `loopbackAddressOfType:`, or IPv4/IPv6/IPC addresses with corresponding methods. It has properties that return the address's type, IP address, and network data representation. The default initializer is not allowed.\n"]]