YLTCPUtils Class Reference
| Inherits from | NSObject |
| Declared in | YLTCPUtils.h |
Class Methods
broadcastAddressWithIp:subnetMask:
Compute and returns the broadcast address using a given ip and its subnet mask.
+ (NSString *)broadcastAddressWithIp:(NSString *)ip subnetMask:(NSString *)subnetMaskParameters
- ip
An ip address.
- subnetMask
A subnet mask.
Availability
1.0.0
Discussion
E.g. with the 192.168.5.130 ip address and its associated
network mask 255.255.255.192, the broadcast address is 192.168.5.191.
It returns nil if something went wrong.
Declared In
YLTCPUtils.hlocalIp
Returns the current device’s ip address on the network.
+ (NSString *)localIpAvailability
1.0.0
Discussion
E.g. 192.168.0.1. It returns nil if something
went wrong.
Declared In
YLTCPUtils.hlocalSubnetMask
Returns the subnet mask of the current device network.
+ (NSString *)localSubnetMaskAvailability
1.0.0
Discussion
E.g. 255.255.255.0. It returns nil if something
went wrong.
Declared In
YLTCPUtils.hnetworkPrefixWithIp:subnetMask:
Compute and returns the network prefix using a given ip and its subnet mask.
+ (NSString *)networkPrefixWithIp:(NSString *)ip subnetMask:(NSString *)subnetMaskParameters
- ip
An ip address.
- subnetMask
A subnet mask.
Availability
1.0.0
Discussion
E.g. with the 192.168.5.130 ip address and its associated
network mask 255.255.255.192, the network prefix is 192.168.5.128.
It returns nil if something went wrong.
Declared In
YLTCPUtils.h