Skip to main content

took

Function took 

Source
pub fn took(code: i64, conf: Option<&Conf>, http: i64) -> Took
Expand description

A multimedia message’s result: Android’s code (-1, Activity.RESULT_OK; else SmsManager.MMS_ERROR_…), the carrier’s answer (M-Send.conf) when it came, and the HTTP status Android adds to its code 4 (0 none). Android’s Ok alone is not the carrier’s. Its code 4 with no HTTP status, or one under 400, says that every try ended on the network (an I/O failure, even a read timeout after the message was posted: MmsHttpClient, MmsRequest, android16-release): the carrier may have taken it, once or more; with a status of 400 or more, the carrier refused it. Its code 0 (Activity.RESULT_CANCELED: Android stopped it) and 1 (an unexpected failure, which may come after the message went), and any code Sioul does not know, are said in doubt too.