mirror of
https://github.com/mii443/encrypt.git
synced 2025-08-22 15:05:33 +00:00
add server function call
This commit is contained in:
11
client.gpsl
11
client.gpsl
@ -1,4 +1,9 @@
|
||||
fn main() {
|
||||
send("test");
|
||||
println(receive());
|
||||
|
||||
#[server(ip = "localhost:8080")]
|
||||
fn add(a: num, b: num) {
|
||||
return a + b;
|
||||
}
|
||||
|
||||
fn main() {
|
||||
println(add(1, 2));
|
||||
}
|
||||
|
Reference in New Issue
Block a user