And here is the documentation I pulled from our internal tool.
Seems I took the time to document this 3rd party tool
Properties
GUID: {B8EDC06C-2FF9-11D1-9755-0060979FF483}
Flags: [hidden, dual, ole, dispatch]
Syntax
Properties ReturnType Name Description
Interface Property (read-only) string Buffer Used to get the data received during some Wait functions
string Buffer
Interface Property (read-only) long BytesInBuffer
long BytesInBuffer
Interface Property bool Connected
bool Connected
Interface Property bool DoTelnetEmulation Boolean value that can be used to instruct w3 Sockets to respond to telnet queries
bool DoTelnetEmulation
Interface Property string Host Text string representing the host and port you want to connect to. This is in the form of "[hostname/ip]:[port]"
string Host
Interface Property long Port
long Port
Interface Property string TelnetEmulation Type of terminal to emulate
string TelnetEmulation
Interface Property long TimeOut Default timeout for all operations in miliseconds
long TimeOut
Methods ReturnType Name Description
Interface Method void Close Closes an active connection
void Close();
Interface Method string GetLine Waits and returns one row of data
string GetLine();
Interface Method string GetText Returns [Len] characters from the socket
string GetText(
[in] long len
);
Interface Method void Open Initiates a connection with "host"
void Open();
Interface Method string peek
string peek(
[in] long len
);
Interface Method void SendLine Sends a line of data and appends a crlf at the end
void SendLine(
[in] string Line
);
Interface Method void SendText Sends a text string without linebreaks
void SendText(
[in] string text
);
Interface Method void Wait Waits until data is returned
void Wait();
Interface Method bool WaitFor Waits for a specifit string and then returns
bool WaitFor(
[in] string Substring
);
Interface Method void WaitForDisconnect Waits until all data is received and the connection is closed. The data can then be read from the "buffer" property
void WaitForDisconnect();