Skip to main content

Networking

  • Chapter
  • First Online:
Introducing Vala Programming
  • 406 Accesses

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.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 34.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 44.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Notes

  1. 1.

    In fact they support much more, e.g., SCTP, DCCP, IPPROTO_RAW, ICMP. TCP and UDP are the most common ones though.

  2. 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. 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

Authors

Rights and permissions

Reprints and permissions

Copyright information

© 2019 Michael Lauer

About this chapter

Check for updates. Verify currency and authenticity via CrossMark

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

Publish with us

Policies and ethics