개요
네트워크 IP 주소를 나타내는 객체입니다.
이 객체는 변경할 수 없습니다.
- 다음 이후:
- 4.2
NSObject, <NS copy> 및 <NSSecureCoding>을 상속합니다.
인스턴스 메서드 요약 | |
(instancetype) | - init |
기본 이니셜라이저 사용은 허용되지 않습니다. 더보기... | |
(instancetype) | - initWithType:ipAddress: |
지정된 주소 유형과 IP 주소로 GCKNetworkAddress를 구성합니다. 더보기... | |
(instancetype) | - initWithType:addressData: |
지정된 주소 유형과 원시 주소로 GCKNetworkAddress를 생성합니다. 더보기... | |
클래스 메서드 요약 | |
(GCKNetworkAddress *) | + wildcardAddressOfType: |
지정된 유형의 와일드 카드 주소를 생성합니다. 더보기... | |
(GCKNetworkAddress *) | + loopbackAddressOfType: |
지정된 유형의 루프백 주소를 구성합니다. 더보기... | |
(GCKNetworkAddress *) | + IPv4BroadcastAddress |
IPv4 브로드캐스트 주소를 구성합니다. 더보기... | |
(GCKNetworkAddress *) | + addressWithIPv4Address: |
IPv4 주소를 구성합니다. 더보기... | |
(GCKNetworkAddress *) | + addressWithIPv6Address: |
IPv6 주소를 구성합니다. 더보기... | |
(GCKNetworkAddress *) | + addressWithIPCPath: |
IPC 주소를 구성합니다. 더보기... | |
속성 요약 | |
GCKNetworkAddressType | type |
주소 유형입니다. 더보기... | |
NSString * | ipAddress |
IP 주소입니다. 더보기... | |
NSData * | addressData |
적절한 주소 구조를 포함하는 NSData로서의 네트워크 주소입니다 (예: struct in_addr 또는 struct in6_addr). 더보기... | |
메서드 세부정보
- (instancetype) init |
기본 이니셜라이저 사용은 허용되지 않습니다.
- (instancetype) initWithType: | (GCKNetworkAddressType) | type | |
ipAddress: | (nullable NSString *) | ipAddress | |
지정된 주소 유형과 IP 주소로 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.
+ (GCKNetworkAddress *) wildcardAddressOfType: | (GCKNetworkAddressType) | type |
지정된 유형의 와일드 카드 주소를 생성합니다.
+ (GCKNetworkAddress *) loopbackAddressOfType: | (GCKNetworkAddressType) | type |
지정된 유형의 루프백 주소를 구성합니다.
+ (GCKNetworkAddress *) IPv4BroadcastAddress |
IPv4 브로드캐스트 주소를 구성합니다.
+ (GCKNetworkAddress *) addressWithIPv4Address: | (NSString *) | ipAddress |
IPv4 주소를 구성합니다.
+ (GCKNetworkAddress *) addressWithIPv6Address: | (NSString *) | ipAddress |
IPv6 주소를 구성합니다.
+ (GCKNetworkAddress *) addressWithIPCPath: | (NSString *) | path |
IPC 주소를 구성합니다.
부동산 세부정보
|
readnonatomicassign |
주소 유형입니다.
|
readnonatomiccopy |
IP 주소입니다.
|
readnonatomiccopy |
적절한 주소 구조를 포함하는 NSData로서의 네트워크 주소입니다 (예: struct in_addr 또는 struct in6_addr).
주소 유형 IPC의 경우 이 필드는 UTF8 인코딩입니다.