You've already forked OpenIntegrations
mirror of
https://github.com/Bayselonarrend/OpenIntegrations.git
synced 2025-11-25 22:12:29 +02:00
Main build (Jenkins)
This commit is contained in:
12
docs/en/examples/TCP/ReadLine.txt
Normal file
12
docs/en/examples/TCP/ReadLine.txt
Normal file
@@ -0,0 +1,12 @@
|
||||
Address = "45.79.112.203:4242";
|
||||
Connection = OPI_TCP.CreateConnection(Address);
|
||||
Data = "Hello server!" + Chars.LF;
|
||||
|
||||
OPI_TCP.SendLine(Connection, Data);
|
||||
|
||||
// End of message marker to avoid waiting for the end of timeout
|
||||
Marker = Chars.LF;
|
||||
Result = OPI_TCP.ReadLine(Connection, , Marker);
|
||||
// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
OPI_TCP.CloseConnection(Connection);
|
||||
@@ -3,11 +3,11 @@
|
||||
Message = "Hello server!" + Chars.LF;
|
||||
Data = ПолучитьДвоичныеДанныеИзСтроки(Message);
|
||||
|
||||
OPI_TCP.SendBinaryData(Connection, Data);
|
||||
Result = OPI_TCP.SendBinaryData(Connection, Data);
|
||||
// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
// End of message marker to avoid waiting for the end of timeout
|
||||
Marker = Chars.LF;
|
||||
Result = OPI_TCP.ReadBinaryData(Connection, , Marker);
|
||||
Response = OPI_TCP.ReadBinaryData(Connection, , Marker);
|
||||
|
||||
OPI_TCP.CloseConnection(Connection);
|
||||
|
||||
12
docs/en/examples/TCP/SendLine.txt
Normal file
12
docs/en/examples/TCP/SendLine.txt
Normal file
@@ -0,0 +1,12 @@
|
||||
Address = "45.79.112.203:4242";
|
||||
Connection = OPI_TCP.CreateConnection(Address);
|
||||
Data = "Hello server!" + Chars.LF;
|
||||
|
||||
Result = OPI_TCP.SendLine(Connection, Data);
|
||||
// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
// End of message marker to avoid waiting for the end of timeout
|
||||
Marker = Chars.LF;
|
||||
Response = OPI_TCP.ReadLine(Connection, , Marker);
|
||||
|
||||
OPI_TCP.CloseConnection(Connection);
|
||||
Reference in New Issue
Block a user