network_ios

0.3

Extension to ios_system, doing network-based commands
holzschu/network_ios

What's New

Release v0.3

2024-02-22T15:14:10Z

Release notes:

File SHA 256
network_ios.xcframework.zip 9fe5f119b2d5568d2255e2540f36e76525bfbeaeda58f32f02592ca8d74f4178

network_ios: network related commands for ios_system

Platform: iOS Build Status
Twitter

ios_system is a replacement for system() that is compatible with AppStore rules and the iOS programming API. Commands are provided as dynamic libraries and loaded as they are required by the user.

ios_system itself contains basic commands, operating on files (ls, mv, rm, tar, curl, grep...) More advanced commands are provided separately. network_ios is one of these extensions. To use it, just compile it and add it to the list of embedded libraries in your app (on top of all the libraries generated by ios_system, of course). There is no change to make to ios_system: if the libnetwork_ios.dylib is present, it will execute the commands. Otherwise, it won't (but that's hardly surprising).

Commands available in this package:

  • ping
  • nc (netcat)
  • nslookup
  • host
  • dig
  • telnet
  • whois

If you run them inside OpenTerm, the interactive versions work. I can't speak for other applications.

How to compile:

run ./compile_network_ios.sh: this will create the binary framework network_ios.xcframework, which you can use in any Xcode project.

How to link:

Add this project as a Swift package dependency to your Xcode project, then embed the network_ios.xcframework framework.

Description

  • Swift Tools 5.3.0
View More Packages from this Author

Dependencies

  • None
Last updated: Wed Dec 18 2024 13:31:15 GMT-1000 (Hawaii-Aleutian Standard Time)