pingx

1.0.5

This ultralight and easy-to-use library is designed to help developers accurately measure and analyze network ping latency in their applications.
shineRR/pingx

What's New

v1.0.5

2024-06-09T10:13:45Z

Improved error handling and stability.

pingx

Version License codecov codebeat badge Codacy Badge Platform

Introduction

This ultralight and easy-to-use library is designed to help developers accurately measure and analyze network ping latency in their applications. Whether you're working on a project that requires real-time communication, online gaming, or network performance monitoring, this library provides a seamless solution to assess and optimize ping times.

Installation

CocoaPods

To integrate pingx into your Xcode project using CocoaPods, add the following line to your Podfile:

pod 'pingx'

Then, run the following command:

$ pod install

Swift Package Manager (SPM)

To integrate pingx into your Xcode project using Swift Package Manager, add the following dependency to your Package.swift file:

dependencies: [
    .package(url: "https://github.com/shineRR/pingx", .upToNextMajor(from: "1.0.0"))
]

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Integration

Import the pingx module into your Swift code and initialize the Pinger instance.

import pingx

let pinger = ContinuousPinger()
pinger.delegate = self

let destination = IPv4Address(address: (8, 8, 8, 8))
let request = Request(destination: destination, demand: .unlimited)

pinger.ping(request: request)

Author

pingx is developed and maintained by shineRR.

License

pingx is available under the MIT license. See the LICENSE file for more info.

Description

  • Swift Tools 5.9.0
View More Packages from this Author

Dependencies

  • None
Last updated: Fri Oct 18 2024 11:51:03 GMT-0900 (Hawaii-Aleutian Daylight Time)