efl.ecore_con Module

The ecore_con module provide various utilities to perform different network related tasks. Everything in a full async ecore way. Most notable are the Lookup class to perform DNS requests, the Url class to perform HTTP requests and the Server class to implement your own server.

Don’t forget about the efl.ecore.FileDownload class if what you need is just to fetch some data to file.

Enumerations

Ecore Con Type

Types for an ecore_con client/server object.

A correct way to set this type is with an ECORE_CON_$TYPE, optionally OR’ed with an ECORE_CON_$USE if encryption is desired, and LOAD_CERT if the previously loaded certificate should be used.

efl.ecore_con.ECORE_CON_LOCAL_USER

Socket in ~/.ecore.

efl.ecore_con.ECORE_CON_LOCAL_SYSTEM

Socket in /tmp.

efl.ecore_con.ECORE_CON_LOCAL_ABSTRACT

Abstract socket.

efl.ecore_con.ECORE_CON_REMOTE_TCP

Remote server using TCP.

efl.ecore_con.ECORE_CON_REMOTE_MCAST

Remote multicast server.

efl.ecore_con.ECORE_CON_REMOTE_UDP

Remote server using UDP.

efl.ecore_con.ECORE_CON_REMOTE_BROADCAST

Remote broadcast using UDP.

efl.ecore_con.ECORE_CON_REMOTE_NODELAY

Remote connection sending packets immediately.

efl.ecore_con.ECORE_CON_REMOTE_CORK

Remote connection sending data in large chunks. (only on linux)

efl.ecore_con.ECORE_CON_USE_SSL2

Use SSL2: UNSUPPORTED.

efl.ecore_con.ECORE_CON_USE_SSL3

Use SSL3: UNSUPPORTED.

efl.ecore_con.ECORE_CON_USE_TLS

Use TLS.

efl.ecore_con.ECORE_CON_USE_MIXED

Use both TLS and SSL3.

efl.ecore_con.ECORE_CON_LOAD_CERT

Attempt to use the loaded certificate.

efl.ecore_con.ECORE_CON_NO_PROXY

Disable all types of proxy on the server.

Ecore Con Url Time

The type of condition to use when making an HTTP request dependent on time, so that headers such as “If-Modified-Since” are used.

efl.ecore_con.ECORE_CON_URL_TIME_NONE

Do not place time restrictions on the HTTP requests.

efl.ecore_con.ECORE_CON_URL_TIME_IFMODSINCE

Add the “If-Modified-Since” HTTP header, so that the request is performed by the server only if the target has been modified since the time value passed to it in the request.

efl.ecore_con.ECORE_CON_URL_TIME_IFUNMODSINCE

Add the “If-Unmodified-Since” HTTP header, so that the request is performed by the server only if the target has NOT been modified since the time value passed to it in the request.

Ecore Con Url Http Version

The http version to use.

efl.ecore_con.ECORE_CON_URL_HTTP_VERSION_1_0

HTTP version 1.0.

efl.ecore_con.ECORE_CON_URL_HTTP_VERSION_1_1

HTTP version 1.1 (default)

Module level functions

efl.ecore_con.init()

Initialize the Ecore Con library

Note

You never need to call this function, it is automatically called when the module is imported.

New in version 1.17.

efl.ecore_con.shutdown()

Shuts down the Ecore Con library.

Note

You never need to call this function, it is automatically called atexit.

New in version 1.17.

efl.ecore_con.url_pipeline_get()

Is HTTP 1.1 pipelining enable ?

Returns

True if enable

New in version 1.17.

efl.ecore_con.url_pipeline_set(enable)

Enable or disable HTTP 1.1 pipelining.

Pipelining allows to send one request after another one, without having to wait for the reply of the first request. The respective replies are received in the order that the requests were sent.

Warning

Enabling this feature will be valid for all requests done using ecore_con_url.

New in version 1.17.