Skip to content
This repository has been archived by the owner. It is now read-only.
IPC Server/Client in Kotlin implemented with Java Sockets
Kotlin
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
gradle/wrapper
src
.gitignore
LICENSE
README.md
build.gradle
gradlew
gradlew.bat
settings.gradle

README.md

SimpleIPC

IPC Server/Client in Kotlin, with the default Java Sockets implementation and a complete API for other implementations.

Getting Started

Get it on JCenter: pw.aru.utils:simple-ipc:LATEST

Latest Version:

Latest Version

Server:

import pw.aru.utils.ipc.server.connector.socket.SimpleSocket
import pw.aru.utils.ipc.server.ipcServer

fun main(args: Array<String>) {
    ipcServer(SimpleSocket(port)) {
        ...
    }
}

Client:

import pw.aru.utils.ipc.client.builder.socket.SocketClientBuilder

fun main(args: Array<String>) {
    val client = SocketClientBuilder().port(25050).build()
    
    ...
}

Using Client Pools:

import pw.aru.utils.ipc.client.builder.socket.SocketClientBuilder

fun main(args: Array<String>) {
    val pool = SocketClientBuilder().port(25050).buildPool()
    
    pool.borrow { 
        ...
    }
}
You can’t perform that action at this time.