https://github.com/red5pro/red5pro-common
Common interfaces and adapters for use in Red5 Pro projects
https://github.com/red5pro/red5pro-common
Last synced: over 1 year ago
JSON representation
Common interfaces and adapters for use in Red5 Pro projects
- Host: GitHub
- URL: https://github.com/red5pro/red5pro-common
- Owner: red5pro
- License: other
- Created: 2017-08-09T17:45:09.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2025-04-01T14:44:39.000Z (over 1 year ago)
- Last Synced: 2025-04-01T15:41:48.858Z (over 1 year ago)
- Language: Java
- Homepage: https://www.red5pro.com
- Size: 760 KB
- Stars: 3
- Watchers: 10
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# red5pro-common
## Common / shared interfaces and adapters
The interfaces and adapters contained here-in are for use in Red5 Pro.
### Networking
Classes to support networking are as follows:
* NetworkManager - provides a public and local / private IP address for the instance
* PortManager - maintains a given port range and supplies available ports to callers
The NetworkManager uses topology modes to determine the logic to utilize when locating IP addresses. Topology modes currently consist of
* DEFAULT - uses the checkip service from Amazon for the public IP and Google dns for the local IP
* PROPERTIES - uses environment property of `PUBLIC_IP` first, system property of `public.ip`, and the `network.properties` file the public IP. For local IP the environment property is `LOCAL_IP`, system property is `local.ip`, and the same goes for the file.
* AWS - uses the instance local calls for meta-data
### Maven
Including in your maven pom is as easy as adding this xml to your dependencies
```xml
com.red5pro
red5pro-common
11.0.0
provided
```
#### Anonymous Access
For *public* access to the artifacts, you'll need to modify your Maven `.m2/settings.xml` or use the example below:
```xml
false
central
libs-release
https://red5pro.jfrog.io/red5pro/libs-release
snapshots
libs-snapshot
https://red5pro.jfrog.io/red5pro/libs-snapshot
false
central
plugins-release
https://red5pro.jfrog.io/red5pro/plugins-release
snapshots
plugins-release
https://red5pro.jfrog.io/red5pro/plugins-release
artifactory
artifactory
```
The `.m2` directory is located within your home directory, unless otherwise configured.
[Directory Listing](https://red5pro.jfrog.io/ui/native/ext-release-local/com/red5pro/red5pro-common)
#### Example Demo Application
A simple example of using common in your projects is available [here](https://github.com/red5pro/red5pro-server-examples/tree/develop/common-demo).
#### Deploy to Artifactory
**For Internal Use Only**
`mvn clean deploy`
This assumes you have your maven `settings.xml` properly configured of course.