Skip to content

0a472b5e dd92 66a7 cd5c 60d9e1344fab

Mat Walker edited this page Apr 17, 2020 · 1 revision

TCPBased.DoTCPRequest Method (Nullable(SslProtocols), String, String, String, Int32, String)

[This is preliminary documentation and is subject to change.]

Performs a single TCP send/receive and assumes server will close connection.

Namespace: TeamControlium.NonGUI
Assembly: TeamControlium.NonGUI (in TeamControlium.NonGUI.dll) Version: 2.0.0

Syntax

C#

public string DoTCPRequest(
	Nullable<SslProtocols> sslProtocol,
	string certificateFile,
	string certificatePassword,
	string url,
	int port,
	string requestString
)

Parameters

 

sslProtocol
Type: System.Nullable(SslProtocols)
If not null, indicates SSL tunnelling is required using the protocol defined.
certificateFile
Type: System.String
Full path and filename of X509 Certificate to use if required by SSL connection
certificatePassword
Type: System.String
If using certificate loaded from file, password to sign certificate with
url
Type: System.String
URL of server required
port
Type: System.Int32
TCP Port to connect to.
requestString
Type: System.String
String to be sent to URL/Port (IE. TCP Socket)

Return Value

Type: String
Raw response string sent back by server

See Also

Reference

TCPBased Class
DoTCPRequest Overload
TeamControlium.NonGUI Namespace

Clone this wiki locally