Efl.Net.Socket.Tcp (class)


A base TCP socket.

This is the common class and takes an existing FD, usually created by an dialer or server.

Since 1.19


Efl.Net.Socket.Fd (class)Efl.Loop.Fd (class)Efl.Loop.Consumer (class)Efl.Object (class)

Full hierarchy


cork (get, set)

Controls TCP's cork using TCP_CORK
Eina_Bool efl_net_socket_tcp_cork_get(const Eo *obj);
Eina_Bool efl_net_socket_tcp_cork_set(Eo *obj, Eina_Bool cork);

fd (get, set) [Overridden from Efl.Loop.Fd]

Defines which file descriptor to watch. If it is a file, use file_fd variant.
int efl_loop_fd_get(const Eo *obj);
void efl_loop_fd_set(Eo *obj, int fd);

keep_alive (get, set)

Controls keep-alive using SO_KEEPALIVE
Eina_Bool efl_net_socket_tcp_keep_alive_get(const Eo *obj);
Eina_Bool efl_net_socket_tcp_keep_alive_set(Eo *obj, Eina_Bool keep_alive);

no_delay (get, set)

Controls TCP's no-delay using TCP_NODELAY
Eina_Bool efl_net_socket_tcp_no_delay_get(const Eo *obj);
Eina_Bool efl_net_socket_tcp_no_delay_set(Eo *obj, Eina_Bool no_delay);


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.
protected set closer_fd (get, set) Closer file descriptor
protected set reader_fd (get, set) Reader file descriptor
protected set writer_fd (get, set) Writer file descriptor
loop (get) The loop to which this object belongs to.
fd_file (get, set) Defines which file descriptor to watch when watching a file.
parent (get, set) The parent of an object.
protected set address_local (get, set) The local address, similar to getsockname().
protected set address_remote (get, set) The remote address, similar to getpeername().
protected set can_read (get, set) If true will notify Efl.Io.Reader.read can be called without blocking or failing.
protected set can_write (get, set) If true will notify Efl.Io.Writer.write can be called without blocking or failing.
close Closes the Input/Output object.
closed (get, set) If true will notify object was closed.
constructor Call the object's constructor.
destructor Call the object's destructor.
protected set eos (get, set) If true will notify end of stream.
protected set family (get, set) The address family (AF_*) family of this socket.
finalize Called at the end of efl_add. Should not be called, just overridden.
read Reads data into a pre-allocated buffer.
write Writes data from a pre-populated buffer.
allow_parent_unref (get, set) Allow an object to be deleted by unref even if it has a parent.
children_iterator_new Get an iterator on all childrens
comment (get, set) A human readable comment for the object
composite_attach Make an object a composite object of another.
composite_detach Detach a composite object from another object.
composite_part_is Check if an object is part of a composite object.
debug_name_override Build a read-only name for this object used for debugging.
del Unrefs the object and reparents it to NULL.
event_callback_forwarder_add Add an event callback forwarder for an event and an object.
event_callback_forwarder_del Remove an event callback forwarder for an event and an object.
event_callback_stop Stop the current callback call.
event_freeze Freeze events of object.
event_freeze_count (get) Return freeze events of object.
class event_global_freeze Freeze events of object.
class event_global_freeze_count (get) Return freeze events of object.
class event_global_thaw Thaw events of object.
event_thaw Thaw events of object.
finalized (get) True if the object is already finalized, otherwise false.
name (get, set) The name of the object.
name_find Find a child object with the given name and return it.
provider_find Searches upwards in the object tree for a provider which knows the given class/interface.



closed Notifies closed, when property is marked as true
can_read,changed Notifies can_read property changed.
eos Notifies end of stream, when property is marked as true.
can_write,changed Notifies can_write property changed.
error Called when a error occurred on the file descriptor
read Called when a read happened on the file descriptor
write Called when a write happened on the file descriptor
callback,add A callback was added.
callback,del A callback was deleted.
del Object is being deleted.
destruct Object has been fully destroyed. It can not be used beyond this point. This event should only serve to clean up any dangling pointer.