【24h】

Hybrid Session Verification Through Endpoint API Generation

机译:通过端点API生成的混合会话验证

获取原文

摘要

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.
机译:本文提出了一种新的混合会话验证方法,该方法基于从多方会话类型生成特定于协议的端点API,从而将会话类型直接应用于主流语言。通过将协议中端点的状态空间映射到目标语言中的一系列通道类型,API的生成促进了源协议行为方面的静态类型检查。通过在生成的API中执行非常轻量的运行时检查来补充这一点,这些检查可以对通道类型的实例强制执行线性使用规则。最终的混合验证可确保在会话执行期间不存在协议违规错误。我们将Java的方法学实现为Scribble框架的扩展,并使用它来为诸如HTTP和SMTP之类的现实世界协议指定和实现兼容的客户端和服务器。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号