summaryrefslogtreecommitdiffstats
path: root/dev-docs/SocketThreads states.gv
blob: 5afaa53703f2d0c415aec64752271e827f92ade0 (plain) (blame)
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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
digraph
{
	node
	[
		shape="box"
	]

	edge
	[
		d
	]

	// Forward-declarations of nodes (so that they are laid out in a specific order:
	ssNormal
	ssWritingRestOut
	ssShuttingDown
	ssShuttingDown2

	// Nodes with special labels / shapes:
	ForceClose
	[
		label="Force close"
		shape="ellipse"
	]
	X
	[
		label="Socket closed"
		shape="ellipse"
	]

	// Edges:
	ssNormal -> ssWritingRestOut
	[
		label="cSocketThreads::RemoveClient()"
	]
	ssWritingRestOut -> ssShuttingDown
	[
		label="All outgoing data written"
	]
	ssShuttingDown -> ssShuttingDown2
	[
		label="One thread loop"
	]
	ssShuttingDown2 -> ForceClose
	[
		label="One thread loop"
	]
	ssNormal -> ssRemoteClosed
	[
		label="Remote closed"
		color="red"
		fontcolor="red"
	]
	ssWritingRestOut -> X
	[
		label="Remote closed"
		color="red"
		fontcolor="red"
	]
	ssShuttingDown -> X
	[
		label="Remote closed"
		color="red"
		fontcolor="red"
	]
	ssShuttingDown2 -> X
	[
		label="Remote closed"
		color="red"
		fontcolor="red"
	]
	ssRemoteClosed -> X
	[
		label="cSocketThreads::RemoveClient()"
	]
	ForceClose -> X
}