Files
2022B2-REB/Assignment-2/client.ol
NikolajDanger f9a0c044c0
2023-01-04 13:32:54 +01:00

20 lines
376 B
Plaintext

from .ServerInterface import ServerInterface
from file import File
service ExampleClient{
embed File as file
outputPort server {
Location: "socket://localhost:9000"
Protocol: sodep
Interfaces: ServerInterface
}
main {
readFile@file( {filename = "source.txt"} )( content )
setFileContent@server( content )()
}
}