summaryrefslogtreecommitdiffstats
path: root/docs/SocketThreads states.gv
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2014-01-19 18:37:20 +0100
committermadmaxoft <github@xoft.cz>2014-01-19 18:37:37 +0100
commitcce063b0cdbe92d0425bca780f2f791ac9772edd (patch)
treee9ecbf985f7bdcaaa0cfbcb16cc0e0a3a7708639 /docs/SocketThreads states.gv
parentMerge pull request #551 from worktycho/schedular (diff)
downloadcuberite-cce063b0cdbe92d0425bca780f2f791ac9772edd.tar
cuberite-cce063b0cdbe92d0425bca780f2f791ac9772edd.tar.gz
cuberite-cce063b0cdbe92d0425bca780f2f791ac9772edd.tar.bz2
cuberite-cce063b0cdbe92d0425bca780f2f791ac9772edd.tar.lz
cuberite-cce063b0cdbe92d0425bca780f2f791ac9772edd.tar.xz
cuberite-cce063b0cdbe92d0425bca780f2f791ac9772edd.tar.zst
cuberite-cce063b0cdbe92d0425bca780f2f791ac9772edd.zip
Diffstat (limited to 'docs/SocketThreads states.gv')
-rw-r--r--docs/SocketThreads states.gv77
1 files changed, 77 insertions, 0 deletions
diff --git a/docs/SocketThreads states.gv b/docs/SocketThreads states.gv
new file mode 100644
index 000000000..5afaa5370
--- /dev/null
+++ b/docs/SocketThreads states.gv
@@ -0,0 +1,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
+}