This group discusses the functions that wrap the write / read functions of the pipe to easily integrate its use into ecore's main loop.
Function Documentation
Create two file descriptors (sockets on Windows).
Add a callback that will be called when the file descriptor that is listened receives data. An event is also put in the event queue when data is received.
- Since :
- 2.3.1
- Parameters:
-
[in] | handler | The handler called when data is received. |
[in] | data | Data to pass to handler when it is called. |
- Returns:
- A newly created Ecore_Pipe object if successful.
NULL
otherwise.
Free an Ecore_Pipe object created with ecore_pipe_add().
- Since :
- 2.3.1
- Parameters:
-
[in] | p | The Ecore_Pipe object to be freed. |
- Returns:
- The pointer to the private data
Stop monitoring if necessary the pipe for reading.
- Since (EFL) :
- 1.1
- Since :
- 2.3.1
- Parameters:
-
[in] | p | The Ecore_Pipe object. |
- See also:
- ecore_pipe_thaw() for monitoring it again.
Close the read end of an Ecore_Pipe object created with ecore_pipe_add().
- Since :
- 2.3.1
- Parameters:
-
[in] | p | The Ecore_Pipe object. |
Start monitoring again the pipe for reading. See ecore_pipe_freeze() for stopping the monitoring activity. This will not work if ecore_pipe_read_close() was previously called on the same pipe.
- Since (EFL) :
- 1.1
- Since :
- 2.3.1
- Parameters:
-
[in] | p | The Ecore_Pipe object. |
Wait from another thread on the read side of a pipe.
- Since (EFL) :
- 1.1
- Since :
- 2.3.1
- Parameters:
-
[in] | p | The pipe to watch on. |
[in] | message_count | The minimal number of message to wait before exiting. |
[in] | wait | The amount of time in second to wait before exiting. |
- Returns:
- the number of message catched during that wait call.
Write on the file descriptor the data passed as parameter.
- Since :
- 2.3.1
- Parameters:
-
[in] | p | The Ecore_Pipe object. |
[in] | buffer | The data to write into the pipe. |
[in] | nbytes | The size of the buffer in bytes |
- Returns:
- EINA_TRUE on a successful write,
EINA_FALSE
on error.
Close the write end of an Ecore_Pipe object created with ecore_pipe_add().
- Since :
- 2.3.1
- Parameters:
-
[in] | p | The Ecore_Pipe object. |