every message type has its own function both for sending and receiving. programmers do not need to use these functions unless they do not want to modify or expand the inter messaging sub system. additionaly, the comminication initializations is alsa done by this api calls.
Enumerations | |
| enum | S_SOC_DATA { SOC_DATA_NOTHING = 0x0, SOC_DATA_NEW = 0x1, SOC_DATA_SHOW = 0x2, SOC_DATA_CLOSE = 0x3, SOC_DATA_EVENT = 0x4, SOC_DATA_EXPOSE = 0x5, SOC_DATA_DISPLAY = 0x6, SOC_DATA_FORMDRAW = 0x7, SOC_DATA_CONFIGURE = 0x8, SOC_DATA_DESKTOP = 0x9 } |
| socket data types More... | |
Functions | |
| int | s_socket_request_new (s_window_t *window, int soc) |
| send new window request to server | |
| int | s_socket_request_display (s_window_t *window, int soc) |
| send display request to server | |
| int | s_socket_request_configure (s_window_t *window, int soc, int form) |
| configure request to server | |
| int | s_socket_request_stream (s_window_t *window, int soc, s_rect_t *coor) |
| stream request to server | |
| int | s_socket_request_show (s_window_t *window, int soc, int id, int show) |
| show request to server | |
| int | s_socket_request_event (s_window_t *window, int soc, s_event_t *event) |
| send event request to server | |
| int | s_socket_request (s_window_t *window, S_SOC_DATA req,...) |
| send request to server | |
| int | s_socket_listen_event (s_window_t *window, int soc) |
| recv, parse end process event data | |
| int | s_socket_listen_expose (s_window_t *window, int soc) |
| recv, parse end process expose data | |
| int | s_socket_listen_desktop (s_window_t *window, int soc) |
| recv, parse end process desktop data | |
| int | s_socket_listen_parse (s_window_t *window, int soc) |
| recv, and call the processing function | |
| int | s_socket_listen_wait (s_window_t *window, int timeout) |
| waits until any event occurs on socket, or timeout. | |
| int | s_socket_uninit (s_window_t *window, s_pollfd_t *pfd) |
| uninitialize window socket | |
| int | s_socket_in_f (s_window_t *window, s_pollfd_t *pfd) |
| pollfd in data call back function for window socket | |
| int | s_socket_ierr_f (s_window_t *window, s_pollfd_t *pfd) |
| pollfd error call back function for window socket | |
| int | s_socket_inw_f (s_window_t *window, s_pollfd_t *pfd) |
| pollfd in data call back function for window wakeup socket | |
| int | s_socket_ierrw_f (s_window_t *window, s_pollfd_t *pfd) |
| pollfd error call back function for window wakeup socket | |
| int | s_socket_closew_f (s_window_t *window, s_pollfd_t *pfd) |
| pollfd close call back function for window wakeup socket | |
| int | s_socket_init_uds (s_window_t *window) |
| initialize uds socket connection between server and window | |
| int | s_socket_init_tcp (s_window_t *window) |
| initialize tcp socket connection between server and window | |
| int | s_socket_init_wakeup (s_window_t *window) |
| initialize wakeup socket for window | |
| int | s_socket_init (s_window_t *window) |
| initialize socket connection between server and window | |
| enum S_SOC_DATA |
socket data types
| int s_socket_closew_f | ( | s_window_t * | window, | |
| s_pollfd_t * | pfd | |||
| ) |
pollfd close call back function for window wakeup socket
| *window | - the window | |
| *pfd | - pollfd handler for window socket |
| int s_socket_ierr_f | ( | s_window_t * | window, | |
| s_pollfd_t * | pfd | |||
| ) |
pollfd error call back function for window socket
| *window | - the window | |
| *pfd | - pollfd handler for window socket |
| int s_socket_ierrw_f | ( | s_window_t * | window, | |
| s_pollfd_t * | pfd | |||
| ) |
pollfd error call back function for window wakeup socket
| *window | - the window | |
| *pfd | - pollfd handler for window socket |
| int s_socket_in_f | ( | s_window_t * | window, | |
| s_pollfd_t * | pfd | |||
| ) |
pollfd in data call back function for window socket
| *window | - the window | |
| *pfd | - pollfd handler for window socket |
| int s_socket_init | ( | s_window_t * | window | ) |
initialize socket connection between server and window
| *window | - the window |
| int s_socket_init_tcp | ( | s_window_t * | window | ) |
initialize tcp socket connection between server and window
| *window | - the window |
| int s_socket_init_uds | ( | s_window_t * | window | ) |
initialize uds socket connection between server and window
| *window | - the window |
| int s_socket_init_wakeup | ( | s_window_t * | window | ) |
initialize wakeup socket for window
| *window | - the window |
| int s_socket_inw_f | ( | s_window_t * | window, | |
| s_pollfd_t * | pfd | |||
| ) |
pollfd in data call back function for window wakeup socket
| *window | - the window | |
| *pfd | - pollfd handler for window socket |
| int s_socket_listen_desktop | ( | s_window_t * | window, | |
| int | soc | |||
| ) |
recv, parse end process desktop data
| *window | - the window | |
| soc | - window socket |
| int s_socket_listen_event | ( | s_window_t * | window, | |
| int | soc | |||
| ) |
recv, parse end process event data
| *window | - the window | |
| soc | - window socket |
| int s_socket_listen_expose | ( | s_window_t * | window, | |
| int | soc | |||
| ) |
recv, parse end process expose data
| *window | - the window | |
| soc | - window socket |
| int s_socket_listen_parse | ( | s_window_t * | window, | |
| int | soc | |||
| ) |
recv, and call the processing function
| *window | - the window | |
| soc | - window socket |
| int s_socket_listen_wait | ( | s_window_t * | window, | |
| int | timeout | |||
| ) |
waits until any event occurs on socket, or timeout.
| *window | - the window | |
| timeout | - timeout value in mili seconds |
| int s_socket_request | ( | s_window_t * | window, | |
| S_SOC_DATA | req, | |||
| ... | ||||
| ) |
send request to server
| *window | - the window | |
| req | - reuest type, followed with request params -if any-. |
| int s_socket_request_configure | ( | s_window_t * | window, | |
| int | soc, | |||
| int | form | |||
| ) |
configure request to server
| *window | - the window | |
| soc | - window socket | |
| form | - is form area will be calculated |
| int s_socket_request_display | ( | s_window_t * | window, | |
| int | soc | |||
| ) |
send display request to server
| *window | - the window | |
| soc | - window socket |
| int s_socket_request_event | ( | s_window_t * | window, | |
| int | soc, | |||
| s_event_t * | event | |||
| ) |
send event request to server
| *window | - the window | |
| soc | - window socket | |
| *event | - event data to send |
| int s_socket_request_new | ( | s_window_t * | window, | |
| int | soc | |||
| ) |
send new window request to server
| *window | - the window | |
| soc | - window socket |
| int s_socket_request_show | ( | s_window_t * | window, | |
| int | soc, | |||
| int | id, | |||
| int | show | |||
| ) |
show request to server
| *window | - the window | |
| soc | - window socket | |
| id | - requested window id | |
| show | - 1: show, 0: hide |
| int s_socket_request_stream | ( | s_window_t * | window, | |
| int | soc, | |||
| s_rect_t * | coor | |||
| ) |
stream request to server
| *window | - the window | |
| soc | - window socket | |
| coor | - coordinates to be updated |
| int s_socket_uninit | ( | s_window_t * | window, | |
| s_pollfd_t * | pfd | |||
| ) |
uninitialize window socket
| *window | - the window | |
| *pfd | - pollfd handler for window socket |
1.4.7