-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy pathSockets Classes diagram code.txt
More file actions
61 lines (45 loc) · 1.26 KB
/
Sockets Classes diagram code.txt
File metadata and controls
61 lines (45 loc) · 1.26 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
@startuml
note "stringstream buffer will be replaced with something \ndifferent. New class RobotBuffer may be." as N0
abstract class SocketServer {
#boost::asio::io_service io_service;
#tcp::endpoint endpoint;
#tcp::iostream socketStream;
#tcp::acceptor * acceptor;
#stringstream * buffer;
+SocketServer (string address, unsigned short port, stringstream * buf)
+~SocketServer ()
+{abstract} void start ()
}
class SocketServerListener {
+void start ()
}
class SocketServerSender {
+void start ()
}
SocketServer -down-|> SocketServerListener
SocketServer -down-|> SocketServerSender
note "Difference only in start() function" as N1
SocketServerListener -- N1
SocketServerSender -- N1
abstract class SocketClient {
#tcp::iostream socketStream;
#stringstream * buffer;
#string address;
#unsigned short port;
+SocketClient (string address, unsigned short port, stringstream * buf)
+{abstract} void start ()
}
class SocketClientListener {
+void start ()
}
class SocketClientSender {
+void start ()
}
SocketClient -down-|> SocketClientListener
SocketClient -down-|> SocketClientSender
note "Difference only in start() function" as N2
SocketClientListener -- N2
SocketClientSender -- N2
N0 .down. SocketServer
N0 .down. SocketClient
@enduml