Abstract
This chapter covers network programming with Vala. We’re introducing the low-level way using POSIX sockets first and then advance to using GIO. Since most web services these days are talking JSON, we’re also going to introducing this. Last but not least, we will present the GNOME HTTP networking library libsoup.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Notes
- 1.
In fact they support much more, e.g., SCTP, DCCP, IPPROTO_RAW, ICMP. TCP and UDP are the most common ones though.
- 2.
Of course, we could have used something like libntp to handle all the nitty and gritty low-level details, but that would be “cheating.”
- 3.
Functions defined in POSIX often return pointers to internal storage, which are not supposed to be released by the caller. In Vala, these functions are mapped as methods returning unowned types.
Author information
Authors and Affiliations
Rights and permissions
Copyright information
© 2019 Michael Lauer
About this chapter
Cite this chapter
Lauer, M. (2019). Networking. In: Introducing Vala Programming. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4842-5380-9_5
Download citation
DOI: https://doi.org/10.1007/978-1-4842-5380-9_5
Published:
Publisher Name: Apress, Berkeley, CA
Print ISBN: 978-1-4842-5379-3
Online ISBN: 978-1-4842-5380-9
eBook Packages: Professional and Applied ComputingProfessional and Applied Computing (R0)Apress Access Books