Does it make sense to have more than one UDP Datagram socket on standby? Are simultaneous packets dr

Posted by Gubatron on Stack Overflow See other posts from Stack Overflow or by Gubatron
Published on 2010-04-04T12:31:21Z Indexed on 2010/04/04 12:43 UTC
Read the original article Hit count: 483

Filed under:
|
|
|
|

I'm coding a networking application on Android.

I'm thinking of having a single UDP port and Datagram socket that receives all the datagrams that are sent to it and then have different processing queues for these messages.

I'm doubting if I should have a second or third UDP socket on standby. Some messages will be very short (100bytes or so), but others will have to transfer files.

My concern is, will the Android kernel drop the small messages if it's too busy handling the bigger ones?

© Stack Overflow or respective owner

Does it make sense to have more than one UDP Datagram socket on standby? Are "simultaneous" packets

Posted by Gubatron on Stack Overflow See other posts from Stack Overflow or by Gubatron
Published on 2010-04-04T12:31:21Z Indexed on 2010/04/04 17:33 UTC
Read the original article Hit count: 484

Filed under:
|
|
|
|

I'm coding a networking application on Android.

I'm thinking of having a single UDP port and Datagram socket that receives all the datagrams that are sent to it and then have different processing queues for these messages.

I'm doubting if I should have a second or third UDP socket on standby. Some messages will be very short (100bytes or so), but others will have to transfer files.

My concern is, will the Android kernel drop the small messages if it's too busy handling the bigger ones?

Update "The latter function calls sock_queue_rcv_skb() (in sock.h), which queues the UDP packet on the socket's receive buffer. If no more space is left on the buffer, the packet is discarded. Filtering also is performed by this function, which calls sk_filter() just like TCP did. Finally, data_ready() is called, and UDP packet reception is completed."

© Stack Overflow or respective owner

Related posts about android

Related posts about udp