GSMLG.Socket.Stream (GSMLG.Socket v0.1.0)

Link to this section Summary

Link to this section Types

Link to this section Functions

See GSMLG.Socket.Stream.Protocol.close/1.

Link to this function

file(self, path)

See GSMLG.Socket.Stream.Protocol.file/2.

Link to this function

file(self, path, options)

See GSMLG.Socket.Stream.Protocol.file/3.

Link to this function

file!(self, path)

Link to this function

file!(self, path, options)

Link to this function

io(self, io, options \\ [])

@spec io(t(), :io.device(), Keyword.t()) :: :ok | {:error, term()}

Read from the IO device and send to the socket following the given options.

options

Options

  • :size is the amount of bytes to read from the IO device, if omitted it will read until EOF
  • :offset is the amount of bytes to read from the IO device before starting to send what's being read
  • :chunk_size is the size of the chunks read from the IO device at a time
Link to this function

io!(self, io, options)

See GSMLG.Socket.Stream.Protocol.recv/1.

Link to this function

recv(self, length_or_options)

See GSMLG.Socket.Stream.Protocol.recv/2.

Link to this function

recv(self, length, options)

See GSMLG.Socket.Stream.Protocol.recv/3.

Link to this function

recv!(self, length_or_options)

Link to this function

recv!(self, length, options)

Link to this function

recv_all!(self)

See GSMLG.Socket.Stream.Protocol.recv_all!/1.

Link to this function

recv_all!(self, acc)

See GSMLG.Socket.Stream.Protocol.recv_all!/2.

Link to this function

recv_all!!(self)

Link to this function

recv_all!!(self, acc)

Link to this function

send(self, data)

See GSMLG.Socket.Stream.Protocol.send/2.

Link to this function

send!(self, data)

See GSMLG.Socket.Stream.Protocol.shutdown/1.

Link to this function

shutdown(self, how)

See GSMLG.Socket.Stream.Protocol.shutdown/2.

Link to this function

shutdown!(self)

Link to this function

shutdown!(self, how)