Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/org.eclipse.etrice.modellib/models/Socket.room')
-rw-r--r--runtime/org.eclipse.etrice.modellib/models/Socket.room41
1 files changed, 41 insertions, 0 deletions
diff --git a/runtime/org.eclipse.etrice.modellib/models/Socket.room b/runtime/org.eclipse.etrice.modellib/models/Socket.room
new file mode 100644
index 000000000..829d21180
--- /dev/null
+++ b/runtime/org.eclipse.etrice.modellib/models/Socket.room
@@ -0,0 +1,41 @@
+RoomModel org.eclipse.etrice.modellib.Socket {
+
+ ActorClass SocketClient {
+ Interface {
+ Port fct: PSocket
+ }
+ Structure {
+ external Port fct
+ }
+ Behavior { }
+ }
+
+ ProtocolClass PSocket {
+ incoming {
+ Message connect(config: DSocketConfiguration)
+ Message disconnect()
+ Message sendData(data: DSocketData)
+ }
+ outgoing {
+ Message connected()
+ Message disconnected()
+ Message receivedData()
+ Message sentData()
+ Message error()
+ }
+ }
+
+ DataClass DSocketConfiguration {
+ Attribute serverName: string
+ Attribute portNumber: int32
+ Attribute protocol: int32
+ Attribute checkCookie: boolean
+ Attribute mode: int32
+ }
+
+ DataClass DSocketData {
+ Attribute size: int32
+ Attribute data: string
+ }
+
+} \ No newline at end of file

Back to the top