University of Hertfordshire

By the same authors

Hybrid Session Verification Through Endpoint API Generation

Research output: Chapter in Book/Report/Conference proceedingConference contribution

View graph of relations
Original languageEnglish
Title of host publicationFundamental Approaches to Software Engineering
PublisherSpringer
Pages401-418
Number of pages18
ISBN (Electronic)978-3-662-49665-7
ISBN (Print)978-3-662-49664-0
DOIs
Publication statusPublished - 2 Apr 2016

Publication series

NameLecture Notes in Computer Science
Volume9633

Abstract

This paper proposes a new hybrid session verification methodology for applying session types directly to mainstream languages, based on generating protocol-specific endpoint APIs from multiparty session types. The API generation promotes static type checking of the behavioural aspect of the source protocol by mapping the state space of an endpoint in the protocol to a family of channel types in the target language. This is supplemented by very light run-time checks in the generated API that enforce a linear usage discipline on instances of the channel types. The resulting hybrid verification guarantees the absence of protocol violation errors during the execution of the session. We implement our methodology for Java as an extension to the Scribble framework, and use it to specify and implement compliant clients and servers for real-world protocols such as HTTP and SMTP.

Notes

© Springer-Verlag Berlin Heidelberg 2016.

ID: 17781103