Library Mobile API Reference for iPad  MicroStrategy 2019
SimplePing Class Reference

#import <SimplePing.h>

Inheritance diagram for SimplePing:

Instance Methods

(id) - initWithHostName:address:
 
(void) - start
 
(void) - sendPingWithData:
 
(void) - stop
 

Class Methods

(SimplePing *) + simplePingWithHostName:
 
(SimplePing *) + simplePingWithHostAddress:
 
(NSString *) + displayAddressForAddress:
 
(const struct ICMPHeader *) + icmpInPacket:
 

Protected Attributes

NSString * _hostName
 
NSData * _hostAddress
 
CFHostRef _host
 
CFSocketRef _socket
 
id< SimplePingDelegate > __weak _delegate
 
uint16_t _identifier
 
uint16_t _nextSequenceNumber
 

Properties

id< SimplePingDelegate > delegate
 
NSString * hostName
 
NSData * hostAddress
 
uint16_t identifier
 
uint16_t nextSequenceNumber
 

Method Documentation

◆ displayAddressForAddress:()

+ (NSString *) displayAddressForAddress: (NSData *)  hostAddress

◆ icmpInPacket:()

+ (const struct ICMPHeader *) icmpInPacket: (NSData *)  packet

◆ initWithHostName:address:()

- (id) initWithHostName: (NSString *)  hostName
address: (NSData *)  hostAddress 

◆ sendPingWithData:()

- (void) sendPingWithData: (NSData *)  data

◆ simplePingWithHostAddress:()

+ (SimplePing *) simplePingWithHostAddress: (NSData *)  hostAddress

◆ simplePingWithHostName:()

+ (SimplePing *) simplePingWithHostName: (NSString *)  hostName

◆ start()

- (void) start

◆ stop()

- (void) stop

Member Data Documentation

◆ _delegate

- (id<SimplePingDelegate> __weak) _delegate
protected

◆ _host

- (CFHostRef) _host
protected

◆ _hostAddress

- (NSData*) _hostAddress
protected

◆ _hostName

- (NSString*) _hostName
protected

◆ _identifier

- (uint16_t) _identifier
protected

◆ _nextSequenceNumber

- (uint16_t) _nextSequenceNumber
protected

◆ _socket

- (CFSocketRef) _socket
protected

Property Documentation

◆ delegate

- (id<SimplePingDelegate>) delegate
readwritenonatomicweak

◆ hostAddress

- (NSData*) hostAddress
readnonatomiccopy

◆ hostName

- (NSString*) hostName
readnonatomiccopy

◆ identifier

- (uint16_t) identifier
readnonatomicassign

◆ nextSequenceNumber

- (uint16_t) nextSequenceNumber
readnonatomicassign