property Connection.LineStream as LineStream
Retrieves a LineStream object to send custom commands to the server.

TypeDescription
LineStream A LineStream object to send custom commands to the server.

Use the LineStream property to access the LineStream object to send custom commands to the server. The RFC 2229 describes the custom commands for the DICT protocol.

The following sample sends the "show db" command to the server, and gets the results:

Private Sub Form_Load()
    Dim c As EXDICTCLIENTLibCtl.Connection
    Set c = Client1.OpenConnection("dict.org")
    If Not (c Is Nothing) Then
        With c.LineStream
            .WriteLine "show db"
            Dim bContinue As Boolean
            bContinue = True
            While bContinue
                Dim s As String
                s = .ReadLine
                If (s = ".") Then
                    bContinue = False
                End If
                Debug.Print s
            Wend
        End With
        c.Close
    End If
    Set c = Nothing
End Sub

The sample sends the "show db" command to the server and gets the answer that server sends to the command, line by line until the server sends the '.' line. The "show db" command displays the list of currently accessible databases, one per line.