Home | History | Annotate | Download | only in android

Lines Matching refs:failure

76  *  failure - If zero, indicates that socket has been successuly connected. If a
82 int failure);
162 /* I/O failure callback .*/
258 * 0 on success, -1 on failure with errno containing the reason for failure.
269 * 0 on success, -1 on failure with errno containing the reason for failure.
282 * Number of bytes sent on success, or -1 on failure with errno containing the
283 * reason for failure.
295 * Number of bytes received on success, or -1 on failure with errno containing
296 * the reason for failure.
309 * on success, or -1 on failure with 'errno' containing the reason for failure.
319 * failure. Prefix can be followed by more query response data, separated from
329 * success, or -1 on failure with errno containing the reason for failure.
496 D("I/O failure while registering channel '%s'@%d: %s",
575 /* In case of an I/O failure we have to invoke failure callback. Note that we
634 /* In case of an I/O failure we have to invoke failure callback. Note that we
680 int failure = 0;
716 failure = memcmp(ok, "ko", 2) == 0;
719 if ((success || failure) && (ok[n] == '\0' || ok[n] == ':')) {
781 * Zero on success, or non-zero on failure.
846 * Zero on success, or non-zero on failure.
856 * Zero on success, or non-zero on failure.
870 * Zero on success, or non-zero on failure.
911 static void _on_event_socket_connected(AndroidEventSocket* adsevent, int failure);
1056 /* There is one special failure here, when buffer was too small to
1058 * protocol error. So we don't report it to the I/O failure
1140 D("I/O failure while reading from channel '%s'@%d: %s",
1142 /* There is one special failure here, when buffer was too small to
1144 * protocol error. So we don't report it to the I/O failure
1197 _on_event_socket_connected(AndroidEventSocket* adsevent, int failure)
1202 if (failure) {
1205 adsevent->on_connected(ads->opaque, ads, failure);
1250 * failure - If zero connection has succeeded, otherwise contains 'errno'-reason
1251 * for connection failure.
1256 int failure)
1261 if (failure) {
1262 /* Depending on the failure code we will either retry, or bail out. */
1263 switch (failure) {
1292 ad->on_connected(ad->opaque, ad, failure);
1438 * failure