1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2026-04-28 20:46:05 +02:00
Files
OpenIntegrations/docs/en/examples/TCP/CreateConnection.txt
T

17 lines
543 B
Plaintext
Vendored

Address = "45.79.112.203:4242";
Connection = OPI_TCP.CreateConnection(Address);
OPI_TCP.CloseConnection(Connection);
Address = "tcpbin.com:4243";
Tls = OPI_TCP.GetTLSSettings(True);
ProxtUser = "proxyuser";
ProxyPassword = "12we...";
ProxyAddress = "127.0.0.1";
ProxyPort = "1080";
Proxy = OPI_TCP.GetProxySettings(ProxyAddress, ProxyPort, "socks5", ProxtUser, ProxyPassword);
Tls = OPI_TCP.GetTLSSettings(True);
Connection = OPI_TCP.CreateConnection(Address, TLS, Proxy);