Abstract
In the previous chapter, you started exploring the POSIX Socket APIs by going through an example of a connection-oriented communication application using the TCP protocol. In this chapter, you will learn how to establish a connectionless communication between the Android application and a remote end-point. Connectionless communication through UDP sockets provides a lightweight communication medium tailed for real-time applications that can work with unordered and lost data packets. This type of connection does not maintain an open connection. Packets get sent to the target protocol address as needed. Since there is no connection in place, packets may get lost or get out of order during transition. The protocol does not provide any service to handle such situations. Throughout this chapter you will continue to modify the example Echo application to include both UDP server and client native implementations.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Preview
Unable to display preview. Download preview PDF.
Rights and permissions
Copyright information
© 2012 Onur Cinar
About this chapter
Cite this chapter
Cinar, O. (2012). POSIX Socket API: Connectionless Communication. In: Pro Android C++ with the NDK. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4302-4828-6_9
Download citation
DOI: https://doi.org/10.1007/978-1-4302-4828-6_9
Publisher Name: Apress, Berkeley, CA
Print ISBN: 978-1-4302-4827-9
Online ISBN: 978-1-4302-4828-6
eBook Packages: Professional and Applied ComputingApress Access BooksProfessional and Applied Computing (R0)