Efl.Net.Socket (interface)

Description

The basic socket interface.

This is built upon the three core Input/Output interfaces: - Efl.Io.Reader: to receive data. - Efl.Io.Writer: to send data. - Efl.Io.Closer: to close the socket for further operations.

As such it can be used with utilities like Efl.Io.Copier.

Since 1.19

Inheritance

Efl.Io.Reader (interface)

Full hierarchy

Members

address_local (get, set) protected set

The local address, similar to getsockname().
const char *efl_net_socket_address_local_get(const Eo *obj);
void efl_net_socket_address_local_set(Eo *obj, const char *address);


address_remote (get, set) protected set

The remote address, similar to getpeername().
const char *efl_net_socket_address_remote_get(const Eo *obj);
void efl_net_socket_address_remote_set(Eo *obj, const char *address);


Inherited

Efl.Io.Closer
close Closes the Input/Output object.
close_on_destructor (get, set) If true will automatically close() on object destructor.
close_on_exec (get, set) If true will automatically close resources on exec() calls.
closed (get, set) If true will notify object was closed.
Efl.Io.Reader
protected set can_read (get, set) If true will notify Efl.Io.Reader.read can be called without blocking or failing.
protected set eos (get, set) If true will notify end of stream.
read Reads data into a pre-allocated buffer.
Efl.Io.Writer
protected set can_write (get, set) If true will notify Efl.Io.Writer.write can be called without blocking or failing.
write Writes data from a pre-populated buffer.

Events

Inherited

Efl.Io.Closer
closed Notifies closed, when property is marked as true
Efl.Io.Reader
can_read,changed Notifies can_read property changed.
eos Notifies end of stream, when property is marked as true.
Efl.Io.Writer
can_write,changed Notifies can_write property changed.