Skip to content

03059a94 49f9 5a2a 06d2 c71f54297a94

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

TCPBased.DoTCPRequest Method (Nullable(SslProtocols), X509Certificate2, 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,
	X509Certificate2 clientCertificate,
	string url,
	int port,
	string requestString
)

Parameters

 

sslProtocol
Type: System.Nullable(SslProtocols)
If not null, indicates SSL tunnelling is required using the protocol defined.
clientCertificate
Type: System.Security.Cryptography.X509Certificates.X509Certificate2
Defines X509 certificate to use in SSL connection, if required.
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