InfluxDB PHP Client
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes | List of all members
InfluxDB2\UdpWriter Class Reference
Inheritance diagram for InfluxDB2\UdpWriter:
InfluxDB2\Writer

Public Member Functions

 __construct ($options)
 
 write ($data)
 
 close ()
 
 write ($data)
 

Public Attributes

 $options = []
 

Protected Member Functions

 writeSocket ($payload)
 
 getSocket ()
 

Protected Attributes

 $socket
 

Constructor & Destructor Documentation

◆ __construct()

InfluxDB2\UdpWriter::__construct (   $options)

UdpWriter constructor.

Parameters
array$options
Exceptions

Exception

Member Function Documentation

◆ close()

InfluxDB2\UdpWriter::close ( )

Closes connection

◆ getSocket()

InfluxDB2\UdpWriter::getSocket ( )
protected

Create (if not exists) socket to write UDP datagrams

Returns
false|resource
Exceptions

Exception

◆ write()

InfluxDB2\UdpWriter::write (   $data)

@inheritDoc

Implements InfluxDB2\Writer.

◆ writeSocket()

InfluxDB2\UdpWriter::writeSocket (   $payload)
protected
Parameters
string$payload
Returns
false|int
Exceptions

Exception


The documentation for this class was generated from the following file: