1# 2# compat.rb -- cross platform compatibility 3# 4# Author: IPR -- Internet Programming with Ruby -- writers 5# Copyright (c) 2002 GOTOU Yuuzou 6# Copyright (c) 2002 Internet Programming with Ruby writers. All rights 7# reserved. 8# 9# $IPR: compat.rb,v 1.6 2002/10/01 17:16:32 gotoyuzo Exp $ 10 11## 12# System call error module used by webrick for cross platform compatability. 13# 14# EPROTO:: protocol error 15# ECONNRESET:: remote host reset the connection request 16# ECONNABORTED:: Client sent TCP reset (RST) before server has accepted the 17# connection requested by client. 18# 19module Errno 20 ## 21 # Protocol error. 22 23 class EPROTO < SystemCallError; end 24 25 ## 26 # Remote host reset the connection request. 27 28 class ECONNRESET < SystemCallError; end 29 30 ## 31 # Client sent TCP reset (RST) before server has accepted the connection 32 # requested by client. 33 34 class ECONNABORTED < SystemCallError; end 35end 36