alvinalexander.com | career | drupal | java | mac | mysql | perl | scala | uml | unix  

Akka/Scala example source code file (tcp-message-protocol_writing.svg)

This example Akka source code file (tcp-message-protocol_writing.svg) is included in my "Source Code Warehouse" project. The intent of this project is to help you more easily find Akka and Scala source code examples by using tags.

All credit for the original source code belongs to akka.io; I'm just trying to make examples easier to find. (For my Scala work, see my Scala examples and tutorials.)

Akka tags/keywords

c, connection, established, filledarrow_marker, helvetica, l, m, produced, t, w

The tcp-message-protocol_writing.svg Akka example source code

<?xml version="1.0"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xl="http://www.w3.org/1999/xlink" version="1.1" viewBox="25 1161 490 243" width="490pt" height="243pt"><metadata xmlns:dc="http://purl.org/dc/elements/1.1/"><dc:date>2013-01-23 14:28Z</dc:date><!-- Produced by OmniGraffle Professional 5.3.6 --></metadata><defs><font-face font-family="Helvetica" font-size="10" units-per-em="1000" underline-position="-75.683594" underline-thickness="49.316406" slope="0" x-height="522.94922" cap-height="717.28516" ascent="770.01953" descent="-229.98047" font-weight="500"><font-face-src><font-face-name name="Helvetica"/></font-face-src></font-face><marker orient="auto" overflow="visible" markerUnits="strokeWidth" id="FilledArrow_Marker" viewBox="-1 -4 10 8" markerWidth="10" markerHeight="8" color="black"><g><path d="M 8 0 L 0 -3 L 0 3 Z" fill="currentColor" stroke="currentColor" stroke-width="1"/></g></marker><font-face font-family="Helvetica" font-size="8" units-per-em="1000" underline-position="-75.683594" underline-thickness="49.316406" slope="0" x-height="522.94922" cap-height="717.28516" ascent="770.01953" descent="-229.98047" font-weight="500"><font-face-src><font-face-name name="Helvetica"/></font-face-src></font-face><font-face font-family="Helvetica" font-size="10" units-per-em="1000" underline-position="-75.683594" underline-thickness="49.316406" slope="0" x-height="532.22656" cap-height="719.72656" ascent="770.01953" descent="-229.98047" font-weight="bold"><font-face-src><font-face-name name="Helvetica-Bold"/></font-face-src></font-face></defs><g stroke="none" stroke-opacity="1" stroke-dasharray="none" fill="none" fill-opacity="1"><title>Canvas 1</title><g><title>Layer 1</title><rect x="36" y="1188" width="468" height="18" fill="#ccc"/><rect x="36" y="1188" width="468" height="18" stroke="black" stroke-linecap="round" stroke-linejoin="round" stroke-width="1"/><text transform="translate(41 1191)" fill="black"><tspan font-family="Helvetica" font-size="10" font-weight="500" x="176.46582" y="10" textLength="105.06836">Connection Established</tspan></text><text transform="translate(234 1218)" fill="black"><tspan font-family="Helvetica" font-size="10" font-weight="500" x="9.876953" y="10" textLength="6.1083984">T</tspan><tspan font-family="Helvetica" font-size="10" font-weight="500" x="14.876953" y="10" textLength="47.246094">cpSelector</tspan></text><text transform="translate(90 1218)" fill="black"><tspan font-family="Helvetica" font-size="10" font-weight="500" x="12.657715" y="10" textLength="23.891602">User </tspan><tspan font-family="Helvetica" font-size="10" font-weight="500" x="36.002441" y="10" textLength="23.339844">Actor</tspan></text><text transform="translate(360 1218)" fill="black"><tspan font-family="Helvetica" font-size="10" font-weight="500" x="20.923828" y="10" textLength="6.1083984">T</tspan><tspan font-family="Helvetica" font-size="10" font-weight="500" x="25.923828" y="10" textLength="61.152344">cpConnection</tspan></text><line x1="126" y1="1233" x2="126" y2="1341" stroke="black" stroke-linecap="round" stroke-linejoin="round" stroke-width="1"/><line x1="270" y1="1233" x2="270" y2="1341" stroke="black" stroke-linecap="round" stroke-linejoin="round" stroke-width="1"/><line x1="414" y1="1251" x2="414" y2="1359" stroke="black" stroke-linecap="round" stroke-linejoin="round" stroke-width="1"/><line x1="270" y1="1305" x2="404.09998" y2="1305" marker-end="url(#FilledArrow_Marker)" stroke="black" stroke-linecap="round" stroke-linejoin="round" stroke-width="1"/><text transform="translate(333 1295.5)" fill="black"><tspan font-family="Helvetica" font-size="8" font-weight="500" x="1.1621094" y="8" textLength="37.351562">ChannelW</tspan><tspan font-family="Helvetica" font-size="8" font-weight="500" x="38.373047" y="8" textLength="32.464844">riteable**</tspan></text><line x1="414" y1="1287" x2="279.90002" y2="1287" marker-end="url(#FilledArrow_Marker)" stroke="black" stroke-linecap="round" stroke-linejoin="round" stroke-width="1"/><text transform="translate(279 1277.5)" fill="black"><tspan font-family="Helvetica" font-size="8" font-weight="500" x="5.7851562" y="8" textLength="7.5507812">W</tspan><tspan font-family="Helvetica" font-size="8" font-weight="500" x="13.1953125" y="8" textLength="44.01953">riteInterest**</tspan></text><path d="M 414 1323 L 275.5 1323 C 275.5 1317.5 264.5 1317.5 264.5 1323 L 135.89999 1323" marker-end="url(#FilledArrow_Marker)" stroke="black" stroke-linecap="round" stroke-linejoin="round" stroke-width="1"/><text transform="translate(135 1313.5)" fill="black"><tspan font-family="Helvetica" font-size="8" font-weight="500" x="9.330078" y="8" textLength="17.339844">ck***</tspan></text><rect x="36" y="1341" width="468" height="18" fill="#ccc"/><rect x="36" y="1341" width="468" height="18" stroke="black" stroke-linecap="round" stroke-linejoin="round" stroke-width="1"/><text transform="translate(41 1344)" fill="black"><tspan font-family="Helvetica" font-size="10" font-weight="500" x="176.46582" y="10" textLength="105.06836">Connection Established</tspan></text><path d="M 126 1251 L 264.5 1251 C 264.5 1245.5 275.5 1245.5 275.5 1251 L 404.1 1251" marker-end="url(#FilledArrow_Marker)" stroke="black" stroke-linecap="round" stroke-linejoin="round" stroke-width="1"/><text transform="translate(342 1241.5)" fill="black"><tspan font-family="Helvetica" font-size="8" font-weight="500" x="3.3417969" y="8" textLength="7.5507812">W</tspan><tspan font-family="Helvetica" font-size="8" font-weight="500" x="10.751953" y="8" textLength="48.90625">rite(data, ack)</tspan></text><text transform="translate(36 1173)" fill="black"><tspan font-family="Helvetica" font-size="10" font-weight="bold" x="0" y="10" textLength="9.4384766">W</tspan><tspan font-family="Helvetica" font-size="10" font-weight="bold" x="9.2626953" y="10" textLength="103.325195">riting to a Connection</tspan></text><text transform="translate(45 1362)" fill="black"><tspan font-family="Helvetica" font-size="8" font-weight="500" x="0" y="8" textLength="142.28906">* if a preceding write is still uncompleted</tspan><tspan font-family="Helvetica" font-size="8" font-weight="500" x="0" y="18" textLength="161.87109">** if all preceding writes have been completed</tspan><tspan font-family="Helvetica" font-size="8" font-weight="500" x="0" y="28" textLength="228.33594">*** if the write has been completed successfully and write.ack != </tspan><tspan font-family="Helvetica" font-size="8" font-weight="500" x="228.19531" y="28" textLength="4.8867188">T</tspan><tspan font-family="Helvetica" font-size="8" font-weight="500" x="232.19531" y="28" textLength="36.457031">cp.NoAck </tspan></text><path d="M 414 1269 L 275.5 1269 C 275.5 1263.5 264.5 1263.5 264.5 1269 L 135.89999 1269" marker-end="url(#FilledArrow_Marker)" stroke="black" stroke-linecap="round" stroke-linejoin="round" stroke-width="1"/><text transform="translate(135 1259.5)" fill="black"><tspan font-family="Helvetica" font-size="8" font-weight="500" x="7.4882812" y="8" textLength="84.02344">CommandFailed(write)*</tspan></text></g></g></svg>

Other Akka source code examples

Here is a short list of links related to this Akka tcp-message-protocol_writing.svg source code file:

... this post is sponsored by my books ...

#1 New Release!

FP Best Seller

 

new blog posts

 

Copyright 1998-2024 Alvin Alexander, alvinalexander.com
All Rights Reserved.

A percentage of advertising revenue from
pages under the /java/jwarehouse URI on this website is
paid back to open source projects.