GCKNetworkAddress Sınıfı
Ağ IP adresini temsil eden bir nesne.
Bu nesne sabittir.
- yılından beri
- 4,2
NSNesne, <NSKopyalama> ve <NSSecureCoding> öğelerini devralır.
Varsayılan başlatıcının kullanılmasına izin verilmiyor.
- (instancetype) initWithType: |
|
(GCKNetworkAddressType) |
type |
ipAddress: |
|
(nullable NSString *) |
ipAddress |
|
|
| |
Belirtilen adres türü ve IP adresiyle bir GCKNetworkAddress oluşturur.
- 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 |
|
|
| |
Belirtilen adres türü ve ham adresle bir GCKNetworkAddress oluşturur.
- 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. |
Belirli bir türde joker karakter adres oluşturur.
Belirli bir türde geri döngü adresi oluşturur.
IPv4 yayın adresi oluşturur.
- (GCKNetworkAddressType) type |
|
readnonatomicassign |
Uygun adres yapısını içeren NSData olarak ağ adresi (ör. struct in_addr veya struct in6_addr).
IPC adres türü için bu alan bir UTF8 kodlamasıdır.
Aksi belirtilmediği sürece bu sayfanın içeriği Creative Commons Atıf 4.0 Lisansı altında ve kod örnekleri Apache 2.0 Lisansı altında lisanslanmıştır. Ayrıntılı bilgi için Google Developers Site Politikaları'na göz atın. Java, Oracle ve/veya satış ortaklarının tescilli ticari markasıdır.
Son güncelleme tarihi: 2023-12-02 UTC.
[null,null,["Son güncelleme tarihi: 2023-12-02 UTC."],[[["The `GCKNetworkAddress` class represents a network IP address and is immutable."],["It provides methods to construct network addresses of various types, including IPv4, IPv6, and IPC."],["You can obtain the address type, IP address string, and raw address data from instances of this class."],["The default initializer is not allowed; you must use designated initializers to create instances."]]],["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"]]