View Source GenLSP.Communication.Adapter behaviour (gen_lsp v0.6.3)
Behaviour for implementing communication adapters for the
GenLSP.Buffer module to use.
Link to this section Summary
Link to this section Types
Link to this section Callbacks
Initialize the adapter.
Here you should return any state that should be passed into the other callbacks.
Tells the adapter to begin listening for data.
Read from the client.
This callback should read a packet of data from the client and return it as the second element in the tuple.
The third element can be used to return any data that as already been read from the client but still needs to be parsed into a packet.
Write data to the client.