Skip to content

Commit

Permalink
Connection, TCP Connection and LocalQueue Connection classes for clie…
Browse files Browse the repository at this point in the history
…nt and server applications
  • Loading branch information
francois-normandin committed Apr 5, 2021
0 parents commit 9d1b792
Show file tree
Hide file tree
Showing 70 changed files with 1,293 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Libraries
*.lvlibp
*.llb

# Shared objects (inc. Windows DLLs)
*.dll
*.so
*.so.*
*.dylib

# Executables
*.exe

# Metadata
*.aliases
*.lvlps
.cache/
*.vip
32 changes: 32 additions & 0 deletions GOSPL Connection.lvproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
<?xml version='1.0' encoding='UTF-8'?>
<Project Type="Project" LVVersion="13008000">
<Property Name="NI.LV.All.SourceOnly" Type="Bool">true</Property>
<Property Name="NI.Project.Description" Type="Str"></Property>
<Item Name="My Computer" Type="My Computer">
<Property Name="NI.SortType" Type="Int">3</Property>
<Property Name="server.app.propertiesEnabled" Type="Bool">true</Property>
<Property Name="server.control.propertiesEnabled" Type="Bool">true</Property>
<Property Name="server.tcp.enabled" Type="Bool">false</Property>
<Property Name="server.tcp.port" Type="Int">0</Property>
<Property Name="server.tcp.serviceName" Type="Str">My Computer/VI Server</Property>
<Property Name="server.tcp.serviceName.default" Type="Str">My Computer/VI Server</Property>
<Property Name="server.vi.callsEnabled" Type="Bool">true</Property>
<Property Name="server.vi.propertiesEnabled" Type="Bool">true</Property>
<Property Name="specify.custom.address" Type="Bool">false</Property>
<Item Name="Connection_GOSPL.lvlib" Type="Library" URL="../source/Connection/Connection_GOSPL.lvlib"/>
<Item Name="Connection.TCP_GOSPL.lvlib" Type="Library" URL="../source/Connection.TCP/Connection.TCP_GOSPL.lvlib"/>
<Item Name="Connection.Queue_GOSPL.lvlib" Type="Library" URL="../source/Connection.LocalQueue/Connection.Queue_GOSPL.lvlib"/>
<Item Name="Example TCP Client-Server.vi" Type="VI" URL="../source/Example TCP Client-Server.vi"/>
<Item Name="Example LocalQueue Client-Server.vi" Type="VI" URL="../source/Example LocalQueue Client-Server.vi"/>
<Item Name="Dependencies" Type="Dependencies">
<Item Name="vi.lib" Type="Folder">
<Item Name="MD5Checksum pad.vi" Type="VI" URL="/&lt;vilib&gt;/Utility/MD5Checksum.llb/MD5Checksum pad.vi"/>
<Item Name="MD5Checksum core.vi" Type="VI" URL="/&lt;vilib&gt;/Utility/MD5Checksum.llb/MD5Checksum core.vi"/>
<Item Name="MD5Checksum format message-digest.vi" Type="VI" URL="/&lt;vilib&gt;/Utility/MD5Checksum.llb/MD5Checksum format message-digest.vi"/>
<Item Name="MD5Checksum string.vi" Type="VI" URL="/&lt;vilib&gt;/Utility/MD5Checksum.llb/MD5Checksum string.vi"/>
<Item Name="RandomStringGenerator.lvclass" Type="LVClass" URL="/&lt;vilib&gt;/LabVIEW Open Source Project/Unicity/RandomStringGenerator/RandomStringGenerator.lvclass"/>
</Item>
</Item>
<Item Name="Build Specifications" Type="Build"/>
</Item>
</Project>
581 changes: 581 additions & 0 deletions GOSPL Connection.vipb

Large diffs are not rendered by default.

Binary file added GOSPL Connection.vipc
Binary file not shown.
6 changes: 6 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
Zero-Clause BSD
Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.

https://opensource.org/licenses/0BSD
Binary file not shown.
Binary file not shown.
154 changes: 154 additions & 0 deletions source/Connection.LocalQueue/Connection.LocalQueue.lvclass

Large diffs are not rendered by default.

8 changes: 8 additions & 0 deletions source/Connection.LocalQueue/Connection.Queue_GOSPL.lvlib
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?xml version='1.0' encoding='UTF-8'?>
<Library LVVersion="13008000">
<Property Name="NI.Lib.Icon" Type="Bin">%Q#!!!!!!!)!"1!&amp;!!!-!%!!!@````]!!!!"!!%!!!(]!!!*Q(C=\&gt;7R=2MR%!81N=?"5X&lt;A91P&lt;!FNA#^M#5Y6M96NA"R[WM#WQ"&lt;9A0ZYR'E?G!WPM1$AN&gt;@S(!ZZQG&amp;0%VLZ'@)H8:_X\&lt;^P(^7@8H\4Y;"`NX\;8JZPUX@@MJXC]C.3I6K5S(F/^DHTE)R`ZS%@?]J;XP/5N&lt;XH*3V\SEJ?]Z#F0?=J4HP+5&lt;Y=]Z#%0/&gt;+9@%QU"BU$D-YI-4[':XC':XB]D?%:HO%:HO(2*9:H?):H?)&lt;(&lt;4%]QT-]QT-]BNIEMRVSHO%R@$20]T20]T30+;.Z'K".VA:OAW"%O^B/GK&gt;ZGM&gt;J.%`T.%`T.)`,U4T.UTT.UTROW6;F.]XDE0-9*IKH?)KH?)L(U&amp;%]R6-]R6-]JIPC+:[#+"/7Q2'CX&amp;1[F#`&amp;5TR_2@%54`%54`'YN$WBWF&lt;GI8E==J\E3:\E3:\E-51E4`)E4`)EDW%D?:)H?:)H?5Q6S:-]S:-A;6,42RIMX:A[J3"Z`'S\*&lt;?HV*MENS.C&lt;&gt;Z9GT,7:IOVC7*NDFA00&gt;&lt;$D0719CV_L%7.N6CR&amp;C(7(R=,(1M4;Z*9.T][RNXH46X62:X632X61?X6\H(L8_ZYP^`D&gt;LP&amp;^8K.S_53Z`-Z4K&gt;4()`(/"Q/M&gt;`P9\@&lt;P&lt;U'PDH?8AA`XUMPTP_EXOF`[8`Q&lt;IT0]?OYVOA(5/(_Z!!!!!!</Property>
<Property Name="NI.Lib.SourceVersion" Type="Int">318799872</Property>
<Property Name="NI.Lib.Version" Type="Str">1.0.0.0</Property>
<Property Name="NI.LV.All.SourceOnly" Type="Bool">true</Property>
<Item Name="Connection.LocalQueue.lvclass" Type="LVClass" URL="../Connection.LocalQueue.lvclass"/>
</Library>
Binary file not shown.
Binary file added source/Connection.LocalQueue/Handshake.vi
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added source/Connection.LocalQueue/getLocalQueueType.vi
Binary file not shown.
Binary file added source/Connection.LocalQueue/onCheckConnection.vi
Binary file not shown.
Binary file added source/Connection.LocalQueue/onConnection.vi
Binary file not shown.
Binary file added source/Connection.LocalQueue/onCreateListener.vi
Binary file not shown.
Binary file added source/Connection.LocalQueue/onDisconnection.vi
Binary file not shown.
Binary file not shown.
Binary file added source/Connection.TCP/Configure TCP Connection.vi
Binary file not shown.
Binary file added source/Connection.TCP/Connect TCP.vi
Binary file not shown.
189 changes: 189 additions & 0 deletions source/Connection.TCP/Connection.TCP.lvclass

Large diffs are not rendered by default.

8 changes: 8 additions & 0 deletions source/Connection.TCP/Connection.TCP_GOSPL.lvlib
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?xml version='1.0' encoding='UTF-8'?>
<Library LVVersion="13008000">
<Property Name="NI.Lib.Icon" Type="Bin">%Q#!!!!!!!)!"1!&amp;!!!-!%!!!@````]!!!!"!!%!!!(]!!!*Q(C=\&gt;8"=&gt;MQ%!8143;(8.6"2CVM#WJ",7Q,SN&amp;(N&lt;!NK!7VM#WI"&lt;8A0$%94UZ2$P%E"Y.?G@I%A7=11U&gt;M\7P%FXB^VL\`NHV=@X&lt;^39O0^N(_&lt;8NZOEH@@=^_CM?,3)VK63LD-&gt;8LS%=_]J'0@/1N&lt;XH,7^\SFJ?]Z#5P?=F,HP+5JTTF+5`Z&gt;MB$(P+1)YX*RU2DU$(![)Q3YW.YBG&gt;YBM@8'*\B':\B'2Z&gt;9HC':XC':XD=&amp;M-T0--T0-.DK%USWS(H'2\$2`-U4`-U4`/9-JKH!&gt;JE&lt;?!W#%;UC_WE?:KH?:R']T20]T20]\A=T&gt;-]T&gt;-]T?/7&lt;66[UTQ//9^BIHC+JXC+JXA-(=640-640-6DOCC?YCG)-G%:(#(+4;6$_6)]R?.8&amp;%`R&amp;%`R&amp;)^,WR/K&lt;75?GM=BZUG?Z%G?Z%E?1U4S*%`S*%`S'$;3*XG3*XG3RV320-G40!G3*D6^J-(3D;F4#J,(T\:&lt;=HN+P5FS/S,7ZIWV+7.NNFC&lt;+.&lt;GC0819TX-7!]JVO,(7N29CR6L%7,^=&lt;(1M4#R*IFV][.DX(X?V&amp;6&gt;V&amp;G&gt;V&amp;%&gt;V&amp;\N(L@_Z9\X_TVONVN=L^?Y8#ZR0J`D&gt;$L&amp;]8C-Q_%1_`U_&gt;LP&gt;WWPAG_0NB@$TP@4C`%`KH@[8`A@PRPA=PYZLD8Y!#/7SO!!!!!!</Property>
<Property Name="NI.Lib.SourceVersion" Type="Int">318799872</Property>
<Property Name="NI.Lib.Version" Type="Str">1.0.0.0</Property>
<Property Name="NI.LV.All.SourceOnly" Type="Bool">true</Property>
<Item Name="Connection.TCP.lvclass" Type="LVClass" URL="../Connection.TCP.lvclass"/>
</Library>
Binary file added source/Connection.TCP/Create TCP Connection.vi
Binary file not shown.
Binary file added source/Connection.TCP/Read Incoming Bytes.vi
Binary file not shown.
Binary file added source/Connection.TCP/Read Read Mode.vi
Binary file not shown.
Binary file added source/Connection.TCP/Read address.vi
Binary file not shown.
Binary file added source/Connection.TCP/Read connection ID.vi
Binary file not shown.
Binary file added source/Connection.TCP/Read remote port.vi
Binary file not shown.
Binary file added source/Connection.TCP/Write Outgoing Bytes.vi
Binary file not shown.
Binary file added source/Connection.TCP/Write Read Mode.vi
Binary file not shown.
Binary file added source/Connection.TCP/Write address.vi
Binary file not shown.
Binary file added source/Connection.TCP/Write connection ID.vi
Binary file not shown.
Binary file added source/Connection.TCP/Write remote port.vi
Binary file not shown.
Binary file added source/Connection.TCP/onConnection.vi
Binary file not shown.
Binary file added source/Connection.TCP/onCreateListener.vi
Binary file not shown.
Binary file added source/Connection.TCP/onDisconnection.vi
Binary file not shown.
Binary file added source/Connection.TCP/onListenForNewConnection.vi
Binary file not shown.
Binary file added source/Connection/Close Connection.vi
Binary file not shown.
Binary file added source/Connection/Connect.vi
Binary file not shown.
289 changes: 289 additions & 0 deletions source/Connection/Connection.lvclass

Large diffs are not rendered by default.

8 changes: 8 additions & 0 deletions source/Connection/Connection_GOSPL.lvlib
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?xml version='1.0' encoding='UTF-8'?>
<Library LVVersion="13008000">
<Property Name="NI.Lib.Icon" Type="Bin">%Q#!!!!!!!)!"1!&amp;!!!-!%!!!@````]!!!!"!!%!!!(]!!!*Q(C=\&gt;8"=&gt;MQ%!8143;(8.6"2CVM#WJ",7Q,SN&amp;(N&lt;!NK!7VM#WI"&lt;8A0$%94UZ2$P%E"Y.?G@I%A7=11U&gt;M\7P%FXB^VL\`NHV=@X&lt;^39O0^N(_&lt;8NZOEH@@=^_CM?,3)VK63LD-&gt;8LS%=_]J'0@/1N&lt;XH,7^\SFJ?]Z#5P?=F,HP+5JTTF+5`Z&gt;MB$(P+1)YX*RU2DU$(![)Q3YW.YBG&gt;YBM@8'*\B':\B'2Z&gt;9HC':XC':XD=&amp;M-T0--T0-.DK%USWS(H'2\$2`-U4`-U4`/9-JKH!&gt;JE&lt;?!W#%;UC_WE?:KH?:R']T20]T20]\A=T&gt;-]T&gt;-]T?/7&lt;66[UTQ//9^BIHC+JXC+JXA-(=640-640-6DOCC?YCG)-G%:(#(+4;6$_6)]R?.8&amp;%`R&amp;%`R&amp;)^,WR/K&lt;75?GM=BZUG?Z%G?Z%E?1U4S*%`S*%`S'$;3*XG3*XG3RV320-G40!G3*D6^J-(3D;F4#J,(T\:&lt;=HN+P5FS/S,7ZIWV+7.NNFC&lt;+.&lt;GC0819TX-7!]JVO,(7N29CR6L%7,^=&lt;(1M4#R*IFV][.DX(X?V&amp;6&gt;V&amp;G&gt;V&amp;%&gt;V&amp;\N(L@_Z9\X_TVONVN=L^?Y8#ZR0J`D&gt;$L&amp;]8C-Q_%1_`U_&gt;LP&gt;WWPAG_0NB@$TP@4C`%`KH@[8`A@PRPA=PYZLD8Y!#/7SO!!!!!!</Property>
<Property Name="NI.Lib.SourceVersion" Type="Int">318799872</Property>
<Property Name="NI.Lib.Version" Type="Str">1.0.0.0</Property>
<Property Name="NI.LV.All.SourceOnly" Type="Bool">true</Property>
<Item Name="Connection.lvclass" Type="LVClass" URL="../Connection.lvclass"/>
</Library>
Binary file added source/Connection/Create Listener.vi
Binary file not shown.
Binary file added source/Connection/CreateReferences.vi
Binary file not shown.
Binary file added source/Connection/Handshake.vi
Binary file not shown.
Binary file added source/Connection/ListenForConnection.vi
Binary file not shown.
Binary file added source/Connection/Read Connection Event.vi
Binary file not shown.
Binary file added source/Connection/Read Incoming Bytes.vi
Binary file not shown.
Binary file added source/Connection/Read connection timeout (ms).vi
Binary file not shown.
Binary file added source/Connection/Read.vi
Binary file not shown.
Binary file added source/Connection/Write Outgoing Bytes.vi
Binary file not shown.
Binary file not shown.
Binary file added source/Connection/Write.vi
Binary file not shown.
Binary file added source/Connection/connection event -- cluster.ctl
Binary file not shown.
Binary file added source/Connection/connection notifier.ctl
Binary file not shown.
Binary file added source/Connection/connection_process.vi
Binary file not shown.
Binary file added source/Connection/createSelfReference.vi
Binary file not shown.
Binary file added source/Connection/getReasonText.vi
Binary file not shown.
Binary file added source/Connection/isConnected.vi
Binary file not shown.
Binary file added source/Connection/onCheckConnection.vi
Binary file not shown.
Binary file added source/Connection/onConnection.vi
Binary file not shown.
Binary file added source/Connection/onCreateListener.vi
Binary file not shown.
Binary file added source/Connection/onDisconnection.vi
Binary file not shown.
Binary file added source/Connection/onListenForNewConnection.vi
Binary file not shown.
Binary file added source/Connection/process.vi
Binary file not shown.
Binary file added source/Connection/reason -- ring.ctl
Binary file not shown.
Binary file added source/Connection/setConnected.vi
Binary file not shown.
Binary file added source/Example LocalQueue Client-Server.vi
Binary file not shown.
Binary file added source/Example TCP Client-Server.vi
Binary file not shown.

0 comments on commit 9d1b792

Please sign in to comment.