Skip to content

Instantly share code, notes, and snippets.

View MohammadAttarzoghi's full-sized avatar
🙂
TICK TOCK

MohammadAttarzoghi

🙂
TICK TOCK
View GitHub Profile
@latant
latant / rmi-example.kt
Created March 9, 2020 22:59
An example using Java RMI with Kotlin
import java.io.Serializable
import java.rmi.Remote
import java.rmi.RemoteException
import java.rmi.registry.LocateRegistry
import java.rmi.server.UnicastRemoteObject
class Person(val name: String, val age: Int): Serializable
interface HelloService : Remote {
@Throws(RemoteException::class)