9 struct ustcomm_connection
{
10 struct list_head list
;
14 /* ustcomm_server must be shallow-copyable */
15 struct ustcomm_server
{
16 /* the "server" socket for serving the external requests */
20 struct list_head connections
;
24 struct ustcomm_server server
;
28 struct ustcomm_server server
;
31 /* ustcomm_source must be shallow-copyable */
32 struct ustcomm_source
{
37 char *strdup_malloc(const char *s
);
39 //int send_message_pid(pid_t pid, const char *msg, char **reply);
40 int ustcomm_request_consumer(pid_t pid
, const char *channel
);
42 int ustcomm_ustd_recv_message(struct ustcomm_ustd
*ustd
, char **msg
, struct ustcomm_source
*src
, int timeout
);
43 int ustcomm_app_recv_message(struct ustcomm_app
*app
, char **msg
, struct ustcomm_source
*src
, int timeout
);
45 int ustcomm_init_app(pid_t pid
, struct ustcomm_app
*handle
);
47 int ustcomm_init_ustd(struct ustcomm_ustd
*handle
);
49 int ustcomm_connect_app(pid_t pid
, struct ustcomm_connection
*conn
);
50 int ustcomm_send_request(struct ustcomm_connection
*conn
, char *req
, char **reply
);
51 int ustcomm_send_reply(struct ustcomm_server
*server
, char *msg
, struct ustcomm_source
*src
);
53 int nth_token_is(char *str
, char *token
, int tok_no
);
55 char *nth_token(char *str
, int tok_no
);
57 #endif /* USTCOMM_H */
This page took 0.033852 seconds and 6 git commands to generate.