✨
This commit is contained in:
19
Assignment-2/client.ol
Normal file
19
Assignment-2/client.ol
Normal file
@ -0,0 +1,19 @@
|
||||
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 )()
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user