/dports/www/ffsend/ffsend-ccd489ce2e75b91c0f17fbf13dbd91fe84f5ad98/cargo-crates/websocket-base-0.26.2/src/ |
H A D | result.rs | 17 use super::WebSocketError; 27 pub enum WebSocketError { enum 42 impl fmt::Display for WebSocketError { implementation 45 WebSocketError::Other(x) => x.fmt(fmt)?, in fmt() 55 impl Error for WebSocketError { implementation 78 impl From<io::Error> for WebSocketError { implementation 79 fn from(err: io::Error) -> WebSocketError { in from() argument 81 return WebSocketError::NoDataAvailable; in from() 83 WebSocketError::IoError(err) in from() 87 impl From<Utf8Error> for WebSocketError { implementation [all …]
|
H A D | header.rs | 17 use crate::result::{WebSocketError, WebSocketResult}; 33 type Err = WebSocketError; 39 return Err(WebSocketError::ProtocolError( in from_str() 47 Err(_) => Err(WebSocketError::ProtocolError( in from_str() 80 type Err = WebSocketError; 86 return Err(WebSocketError::ProtocolError( in from_str() 94 Err(_) => Err(WebSocketError::ProtocolError( in from_str()
|
H A D | dataframe.rs | 2 use crate::result::{WebSocketError, WebSocketResult}; 62 return Err(WebSocketError::DataFrameError( in read_dataframe_body() 70 return Err(WebSocketError::DataFrameError("Expected masked data frame")); in read_dataframe_body() 233 (WebSocketError::NoDataAvailable, WebSocketError::NoDataAvailable) => (), in read_incomplete_payloads()
|
/dports/www/websocat/websocat-1.9.0/cargo-crates/websocket-base-0.26.2/src/ |
H A D | result.rs | 17 use super::WebSocketError; 27 pub enum WebSocketError { enum 42 impl fmt::Display for WebSocketError { implementation 45 WebSocketError::Other(x) => x.fmt(fmt)?, in fmt() 55 impl Error for WebSocketError { implementation 78 impl From<io::Error> for WebSocketError { implementation 79 fn from(err: io::Error) -> WebSocketError { in from() argument 81 return WebSocketError::NoDataAvailable; in from() 83 WebSocketError::IoError(err) in from() 87 impl From<Utf8Error> for WebSocketError { implementation [all …]
|
H A D | header.rs | 17 use crate::result::{WebSocketError, WebSocketResult}; 33 type Err = WebSocketError; 39 return Err(WebSocketError::ProtocolError( in from_str() 47 Err(_) => Err(WebSocketError::ProtocolError( in from_str() 80 type Err = WebSocketError; 86 return Err(WebSocketError::ProtocolError( in from_str() 94 Err(_) => Err(WebSocketError::ProtocolError( in from_str()
|
/dports/lang/mono/mono-5.10.1.57/external/corefx/src/System.Net.WebSockets/src/System/Net/WebSockets/ |
H A D | WebSocketException.cs | 18 private readonly WebSocketError _webSocketErrorCode; 29 public WebSocketException(WebSocketError error) in WebSocketException() 61 …_webSocketErrorCode = !Succeeded(nativeError) ? WebSocketError.NativeError : WebSocketError.Succes… in WebSocketException() 70 …_webSocketErrorCode = !Succeeded(nativeError) ? WebSocketError.NativeError : WebSocketError.Succes… in WebSocketException() 79 …_webSocketErrorCode = !Succeeded(nativeError) ? WebSocketError.NativeError : WebSocketError.Succes… in WebSocketException() 148 public WebSocketError WebSocketErrorCode 161 case WebSocketError.InvalidMessageType: in GetErrorMessage() 165 case WebSocketError.Faulted: in GetErrorMessage() 167 case WebSocketError.NotAWebSocket: in GetErrorMessage() 173 case WebSocketError.HeaderError: in GetErrorMessage() [all …]
|
/dports/lang/mono/mono-5.10.1.57/mcs/class/referencesource/System/net/System/Net/WebSockets/ |
H A D | WebSocketException.cs | 20 private WebSocketError m_WebSocketErrorCode; 31 public WebSocketException(WebSocketError error) in WebSocketException() 63 …= !WebSocketProtocolComponent.Succeeded(nativeError) ? WebSocketError.NativeError : WebSocketError… in WebSocketException() 72 …= !WebSocketProtocolComponent.Succeeded(nativeError) ? WebSocketError.NativeError : WebSocketError… in WebSocketException() 81 …= !WebSocketProtocolComponent.Succeeded(nativeError) ? WebSocketError.NativeError : WebSocketError… in WebSocketException() 146 public WebSocketError WebSocketErrorCode 159 case WebSocketError.InvalidMessageType: in GetErrorMessage() 163 case WebSocketError.Faulted: in GetErrorMessage() 165 case WebSocketError.NotAWebSocket: in GetErrorMessage() 171 case WebSocketError.HeaderError: in GetErrorMessage() [all …]
|
/dports/lang/mono/mono-5.10.1.57/external/corefx/src/System.Net.WebSockets/tests/ |
H A D | WebSocketExceptionTests.cs | 15 new object[] { WebSocketError.Success }, 16 new object[] { WebSocketError.InvalidMessageType }, 17 new object[] { WebSocketError.Faulted }, 18 new object[] { WebSocketError.NativeError }, 19 new object[] { WebSocketError.NotAWebSocket }, 20 new object[] { WebSocketError.UnsupportedVersion }, 21 new object[] { WebSocketError.UnsupportedProtocol }, 22 new object[] { WebSocketError.HeaderError }, 23 new object[] { WebSocketError.ConnectionClosedPrematurely }, 24 new object[] { WebSocketError.InvalidState }, [all …]
|
/dports/www/py-aiohttp/aiohttp-3.7.4.post0/tests/ |
H A D | test_websocket_parser.py | 131 with pytest.raises(WebSocketError): 137 with pytest.raises(WebSocketError): 143 with pytest.raises(WebSocketError): 149 with pytest.raises(WebSocketError): 202 with pytest.raises(WebSocketError) as ctx: 211 with pytest.raises(WebSocketError) as ctx: 221 with pytest.raises(WebSocketError): 236 with pytest.raises(WebSocketError) as ctx: 301 with pytest.raises(WebSocketError): 333 with pytest.raises(WebSocketError) as ctx: [all …]
|
/dports/lang/mono/mono-5.10.1.57/external/corefx/src/System.Net.WebSockets/ref/ |
H A D | System.Net.WebSockets.cs | 75 public enum WebSocketError enum 94 public WebSocketException(System.Net.WebSockets.WebSocketError error) { } in WebSocketException() 95 …public WebSocketException(System.Net.WebSockets.WebSocketError error, System.Exception innerExcept… in WebSocketException() 96 public WebSocketException(System.Net.WebSockets.WebSocketError error, int nativeError) { } in WebSocketException() 97 …public WebSocketException(System.Net.WebSockets.WebSocketError error, int nativeError, System.Exce… in WebSocketException() 98 …public WebSocketException(System.Net.WebSockets.WebSocketError error, int nativeError, string mess… in WebSocketException() 99 …public WebSocketException(System.Net.WebSockets.WebSocketError error, int nativeError, string mess… in WebSocketException() 100 public WebSocketException(System.Net.WebSockets.WebSocketError error, string message) { } in WebSocketException() 101 …public WebSocketException(System.Net.WebSockets.WebSocketError error, string message, System.Excep… in WebSocketException() 105 public System.Net.WebSockets.WebSocketError WebSocketErrorCode { get { throw null; } }
|
/dports/www/ffsend/ffsend-ccd489ce2e75b91c0f17fbf13dbd91fe84f5ad98/cargo-crates/websocket-base-0.26.2/src/ws/util/ |
H A D | header.rs | 3 use crate::result::{WebSocketError, WebSocketResult}; 37 return Err(WebSocketError::DataFrameError("Invalid data frame opcode")); in write_header() 40 return Err(WebSocketError::DataFrameError( in write_header() 88 return Err(WebSocketError::DataFrameError("Invalid data frame length")); in read_header() 95 return Err(WebSocketError::DataFrameError("Invalid data frame length")); in read_header() 104 return Err(WebSocketError::DataFrameError( in read_header() 109 return Err(WebSocketError::ProtocolError( in read_header()
|
/dports/www/websocat/websocat-1.9.0/cargo-crates/websocket-base-0.26.2/src/ws/util/ |
H A D | header.rs | 3 use crate::result::{WebSocketError, WebSocketResult}; 37 return Err(WebSocketError::DataFrameError("Invalid data frame opcode")); in write_header() 40 return Err(WebSocketError::DataFrameError( in write_header() 88 return Err(WebSocketError::DataFrameError("Invalid data frame length")); in read_header() 95 return Err(WebSocketError::DataFrameError("Invalid data frame length")); in read_header() 104 return Err(WebSocketError::DataFrameError( in read_header() 109 return Err(WebSocketError::ProtocolError( in read_header()
|
/dports/www/py-gevent-websocket/gevent-websocket-0.10.1/geventwebsocket/ |
H A D | websocket.py | 7 from .exceptions import WebSocketError 214 raise WebSocketError('Unexpected EOF reading frame payload') 298 raise WebSocketError(MSG_ALREADY_CLOSED) 318 raise WebSocketError(MSG_ALREADY_CLOSED) 330 raise WebSocketError(MSG_SOCKET_DEAD) 345 except WebSocketError: 347 raise WebSocketError(MSG_SOCKET_DEAD) 363 except WebSocketError: 464 raise WebSocketError("Unexpected EOF while decoding header") 492 raise WebSocketError('Unexpected EOF while decoding header') [all …]
|
H A D | exceptions.py | 4 class WebSocketError(socket_error): class 10 class ProtocolError(WebSocketError):
|
/dports/www/ffsend/ffsend-ccd489ce2e75b91c0f17fbf13dbd91fe84f5ad98/cargo-crates/websocket-0.26.2/src/ |
H A D | result.rs | 19 pub type WebSocketResult<T> = Result<T, WebSocketError>; 25 use super::WebSocketError; 30 pub type WebSocketFuture<I> = Box<dyn Future<Item = I, Error = WebSocketError> + Send>; 33 pub use websocket_base::result::WebSocketError; 215 impl From<WebSocketOtherError> for WebSocketError { implementation 216 fn from(e: WebSocketOtherError) -> WebSocketError { in from() argument 217 WebSocketError::Other(Box::new(e)) in from() 221 pub(crate) fn towse<E>(e: E) -> WebSocketError in towse()
|
/dports/www/websocat/websocat-1.9.0/cargo-crates/websocket-0.26.2/src/ |
H A D | result.rs | 19 pub type WebSocketResult<T> = Result<T, WebSocketError>; 25 use super::WebSocketError; 30 pub type WebSocketFuture<I> = Box<dyn Future<Item = I, Error = WebSocketError> + Send>; 33 pub use websocket_base::result::WebSocketError; 215 impl From<WebSocketOtherError> for WebSocketError { implementation 216 fn from(e: WebSocketOtherError) -> WebSocketError { in from() argument 217 WebSocketError::Other(Box::new(e)) in from() 221 pub(crate) fn towse<E>(e: E) -> WebSocketError in towse()
|
/dports/www/websocat/websocat-1.9.0/src/ |
H A D | ws_server_peer.rs | 6 use self::websocket::WebSocketError; 128 err(WebSocketError::IoError(io_other_error(e))) in ws_upgrade_peer() 132 move |mut x| -> Box<dyn Future<Item = Peer, Error = websocket::WebSocketError>> { in ws_upgrade_peer() 194 .map_err(|e| websocket::WebSocketError::IoError(io_other_error(e))), in ws_upgrade_peer() 196 as Box<dyn Future<Item = Peer, Error = websocket::WebSocketError>>; in ws_upgrade_peer() 245 .map_err(|e| websocket::WebSocketError::IoError(io_other_error(e))), in ws_upgrade_peer() 247 as Box<dyn Future<Item = Peer, Error = websocket::WebSocketError>>; in ws_upgrade_peer() 255 })) as Box<dyn Future<Item = Peer, Error = websocket::WebSocketError>> in ws_upgrade_peer()
|
/dports/lang/mono/mono-5.10.1.57/external/corefx/src/System.Net.HttpListener/src/System/Net/WebSockets/ |
H A D | HttpWebSocket.cs | 47 throw new WebSocketException(WebSocketError.UnsupportedProtocol, in ProcessWebSocketProtocolHeader() 80 throw new WebSocketException(WebSocketError.UnsupportedProtocol, in ProcessWebSocketProtocolHeader() 143 throw new WebSocketException(WebSocketError.NotAWebSocket, in ValidateWebSocketHeaders() 155 throw new WebSocketException(WebSocketError.HeaderError, in ValidateWebSocketHeaders() 163 throw new WebSocketException(WebSocketError.UnsupportedVersion, in ValidateWebSocketHeaders() 186 throw new WebSocketException(WebSocketError.HeaderError, in ValidateWebSocketHeaders()
|
/dports/finance/electrum/Electrum-4.1.5/packages/aiohttp/ |
H A D | http_websocket.py | 102 class WebSocketError(Exception): class 299 raise WebSocketError( 306 raise WebSocketError( 311 raise WebSocketError( 334 raise WebSocketError( 345 raise WebSocketError( 369 raise WebSocketError( 450 raise WebSocketError( 456 raise WebSocketError( 467 raise WebSocketError( [all …]
|
/dports/www/py-aiohttp/aiohttp-3.7.4.post0/aiohttp/ |
H A D | http_websocket.py | 102 class WebSocketError(Exception): class 299 raise WebSocketError( 306 raise WebSocketError( 311 raise WebSocketError( 334 raise WebSocketError( 345 raise WebSocketError( 369 raise WebSocketError( 450 raise WebSocketError( 456 raise WebSocketError( 467 raise WebSocketError( [all …]
|
/dports/www/firefox/firefox-99.0/third_party/python/aiohttp/aiohttp/ |
H A D | http_websocket.py | 102 class WebSocketError(Exception): class 299 raise WebSocketError( 306 raise WebSocketError( 311 raise WebSocketError( 334 raise WebSocketError( 345 raise WebSocketError( 369 raise WebSocketError( 450 raise WebSocketError( 456 raise WebSocketError( 467 raise WebSocketError( [all …]
|
/dports/www/ffsend/ffsend-ccd489ce2e75b91c0f17fbf13dbd91fe84f5ad98/cargo-crates/websocket-base-0.26.2/src/codec/ |
H A D | ws.rs | 25 use crate::result::WebSocketError; 95 type Error = WebSocketError; 106 Err(WebSocketError::NoDataAvailable) => return Ok(None), in decode() 136 type Error = WebSocketError; 246 type Error = WebSocketError; 256 return Err(WebSocketError::ProtocolError( in decode() 266 return Err(WebSocketError::ProtocolError( in decode() 291 type Error = WebSocketError;
|
/dports/www/websocat/websocat-1.9.0/cargo-crates/websocket-base-0.26.2/src/codec/ |
H A D | ws.rs | 25 use crate::result::WebSocketError; 95 type Error = WebSocketError; 106 Err(WebSocketError::NoDataAvailable) => return Ok(None), in decode() 136 type Error = WebSocketError; 246 type Error = WebSocketError; 256 return Err(WebSocketError::ProtocolError( in decode() 266 return Err(WebSocketError::ProtocolError( in decode() 291 type Error = WebSocketError;
|
/dports/lang/mono/mono-5.10.1.57/external/corefx/src/System.Net.WebSockets.Client/tests/ |
H A D | SendReceiveTest.cs | 188 WebSocketError errCode = (ex as WebSocketException).WebSocketErrorCode; in SendAsync_MultipleOutstandingSendOperations_Throws() 190 … (errCode == WebSocketError.InvalidState) || (errCode == WebSocketError.Success), in SendAsync_MultipleOutstandingSendOperations_Throws() 251 WebSocketError errCode = (ex as WebSocketException).WebSocketErrorCode; in ReceiveAsync_MultipleOutstandingReceiveOperations_Throws() 253 … (errCode == WebSocketError.InvalidState) || (errCode == WebSocketError.Success), in ReceiveAsync_MultipleOutstandingReceiveOperations_Throws() 423 …Assert.Equal(WebSocketError.ConnectionClosedPrematurely, pendingReceiveException.WebSocketErrorCod… in SendReceive_ConnectionClosedPrematurely_ReceiveAsyncFailsAndWebSocketStateUpdated() 427 … Assert.Equal(WebSocketError.ConnectionClosedPrematurely, newReceiveException.WebSocketErrorCode); in SendReceive_ConnectionClosedPrematurely_ReceiveAsyncFailsAndWebSocketStateUpdated() 437 …Assert.Equal(WebSocketError.ConnectionClosedPrematurely, pendingReceiveException.WebSocketErrorCod… in SendReceive_ConnectionClosedPrematurely_ReceiveAsyncFailsAndWebSocketStateUpdated() 441 Assert.Equal(WebSocketError.Success, newReceiveException.WebSocketErrorCode); in SendReceive_ConnectionClosedPrematurely_ReceiveAsyncFailsAndWebSocketStateUpdated() 456 …Assert.Equal(WebSocketError.ConnectionClosedPrematurely, pendingReceiveException.WebSocketErrorCod… in SendReceive_ConnectionClosedPrematurely_ReceiveAsyncFailsAndWebSocketStateUpdated() 462 Assert.Equal(WebSocketError.Success, newReceiveException.WebSocketErrorCode); in SendReceive_ConnectionClosedPrematurely_ReceiveAsyncFailsAndWebSocketStateUpdated()
|
/dports/lang/mono/mono-5.10.1.57/mcs/class/System/Test/System.Net.WebSockets/ |
H A D | ClientWebSocketTest.cs | 70 AssertWebSocketException (e, WebSocketError.Success, typeof (WebException)); in ServerHandshakeReturnCrapStatusCodeTest() 89 AssertWebSocketException (e, WebSocketError.Success); in ServerHandshakeReturnWrongUpgradeHeader() 110 AssertWebSocketException (e, WebSocketError.Success); in ServerHandshakeReturnWrongConnectionHeader() 214 AssertWebSocketException (e, WebSocketError.InvalidState); in ReceiveAsyncWrongState_Closed() 229 AssertWebSocketException (e, WebSocketError.InvalidState); in SendAsyncWrongState_Closed() 244 AssertWebSocketException (e, WebSocketError.InvalidState); in SendAsyncWrongState_CloseSent() 296 void AssertWebSocketException (AggregateException e, WebSocketError error, Type inner = null) in AssertWebSocketException()
|