dcd.common.messages

This file is part of DCD, a development tool for the D programming language. Copyright (C) 2014 Brian Schott

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.

Members

Enums

CompletionType
enum CompletionType

The type of completion list being returned

RequestKind
enum RequestKind

Request kind

Functions

escapeConsoleOutputString
string escapeConsoleOutputString(string s, bool single = false)

Escapes \n, \t and \ in the string. If single is true \t won't be escaped.

getResponse
AutocompleteResponse getResponse(Socket socket)

Gets the response from the server

makeTabSeparated
string makeTabSeparated(string[] args...)

Joins string arguments with tabs and escapes them

sendRequest
bool sendRequest(Socket socket, AutocompleteRequest request)
serverIsRunning
bool serverIsRunning(bool useTCP, string socketFile, ushort port)

Structs

AutocompleteRequest
struct AutocompleteRequest

Autocompletion request message

AutocompleteResponse
struct AutocompleteResponse

Autocompletion response message

Meta