You've already forked OpenIntegrations
mirror of
https://github.com/Bayselonarrend/OpenIntegrations.git
synced 2025-11-29 22:27:42 +02:00
Main build (Jenkins)
This commit is contained in:
16
docs/en/examples/TCP/AwaitingConnection.txt
vendored
Normal file
16
docs/en/examples/TCP/AwaitingConnection.txt
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
TCPServer = OPI_TCP.CreateServer(7788, True);
|
||||
|
||||
For N = 1 To 5 Do
|
||||
|
||||
NewConnection = OPI_TCP.AwaitingConnection(TCPServer, 20);
|
||||
|
||||
If NewConnection["result"] Then
|
||||
Connection = NewConnection["connection"];
|
||||
Else
|
||||
Continue;
|
||||
EndIf;
|
||||
|
||||
Response = OPI_TCP.SendData(TCPServer, Connection, ПолучитьДвоичныеДанныеИзСтроки("Yo"));
|
||||
Closing = OPI_TCP.CloseIncomingConnection(TCPServer, Connection);
|
||||
|
||||
EndDo;
|
||||
Reference in New Issue
Block a user