Getting data from a dispatch source
2014-08-29 16:18
489 查看
Function | Description |
dispatch_source_-get_handle | This function returns the underlying system data type that the dispatch sourcemanages. For a descriptor dispatch source, this function returns an int type containingthe descriptor associated with the dispatch source. For a signal dispatch source, this function returns an int type containing thesignal number for the most recent event. For a process dispatch source, this function returns a pid_t data structurefor the process being monitored. For a Mach port dispatch source, this function returns a mach_port_t datastructure. For other dispatch sources, the value returned by this function is undefined. |
dispatch_source_-get_data | This function returns any pending data associated with the event. For a descriptor dispatch source that reads data from a file, this functionreturns the number of bytes available for reading. For a descriptor dispatch source that writes data to a file, this function returnsa positive integer if space is available for writing. For a descriptor dispatch source that monitors file system activity, this functionreturns a constant indicating the type of event that occurred. For a list ofconstants, see the dispatch_source_vnode_flags_t enumerated type. For a process dispatch source, this function returns a constant indicating thetype of event that occurred. For a list of constants, see thedispatch_source_proc_flags_t enumerated type. For a Mach port dispatch source, this function returns a constant indicatingthe type of event that occurred. For a list of constants, see thedispatch_source_machport_flags_t enumerated type. For a custom dispatch source, this function returns the new data value createdfrom the existing data and the new data passed to thedispatch_source_merge_data function. |
dispatch_source_-get_mask | This function returns the event flags that were used to create the dispatchsource. For a process dispatch source, this function returns a mask of the events thatthe dispatch source receives. For a list of constants, see thedispatch_source_proc_flags_t enumerated type. For a Mach port dispatch source with send rights, this function returns a maskof the desired events. For a list of constants, see the dispatch_source_-mach_send_flags_t enumerated type. For a custom OR dispatch source, this function returns the mask used to mergethe data values. |
相关文章推荐
- Getting Started With OData Part 2: Building an OData Services from Any Data Source
- DataTables warning : Requested unknown parameter '0' from the data source for row 0错误
- Create a Repeating Cascading List from a Flat Data Source
- 由于没有发现潜在的递归导致MySQL链接数溢出:MySQLNonTransientConnectionException: Data source rejected establishment of connection, message from server: "Too many connec
- DataTables warning (table id = 'data-table-1'): Requested unknown parameter '9' from the data source
- MySQL Data source rejected establishment of connection, message from server: "Too many connections"
- 28msec - query data from any source in real time
- DataTables warning : Requested unknown parameter '1' from the data source for row 0错误
- Data source rejected establishment of connection, message from server: "Too many connections"
- [转]SSIS error DTS_E_CANNOTACQUIRECONNECTIONFROMCONNECTIONMANAGER when connecting to Oracle data source
- Example: Getting WMI Data from a Remote Computer
- Data source rejected establishment of connection, message from server: "Too many connections"
- DataTables warning : Requested unknown parameter '1' from the data source for row 0错误
- data source from bit.ly
- Data source rejected establishment of connection, message from server: "Too many connections"
- Getting Data From the Web (URLConnection via http)
- getting data from the keybroad
- advanced skills of getting stock quotes data from web
- DataTables warning (table id = 'myTable'): Requested unknown parameter '0' from the data source for row 0
- Data source rejected establishment of connection, message from server: "Too many connections"