|
unexpected() may (or may not if you're Visual C++) be called. As such we view exception specifications as of limited use in C++. However: we do use a 'no throw' (throw()) exception specification to indicate that a function does not throw exceptions. We rarely use a 'no throw' specification to indicate that YOU should not throw exceptions, simply because we don't trust you ;)
Functions | |
| B * | Release () throw () |
| virtual bool | TryRead ()=0 throw () |
| virtual bool | TryRead (JetByteTools::IO::IBuffer &buffer)=0 throw () |
| virtual bool | TryRead (JetByteTools::IO::IBuffer *pBuffer)=0 throw () |
| virtual bool | TryWrite (const char *pData, const DataLength dataLength)=0 throw () |
| virtual bool | TryWrite (const BYTE *pData, const DataLength dataLength)=0 throw () |
| virtual bool | TryWrite (JetByteTools::IO::IBuffer &buffer)=0 throw () |
| virtual bool | TryWrite (const char *pData, const DataLength dataLength)=0 throw () |
| virtual bool | TryWrite (const BYTE *pData, const DataLength dataLength)=0 throw () |
| virtual bool | TryWrite (JetByteTools::IO::IBuffer &buffer)=0 throw () |
| virtual bool | TrySendTo (const IAddress &address, const char *pData, const DataLength dataLength)=0 throw () |
| virtual bool | TrySendTo (const IAddress &address, const BYTE *pData, const DataLength dataLength)=0 throw () |
| virtual bool | TrySendTo (const IAddress &address, JetByteTools::IO::IBuffer &buffer)=0 throw () |
| virtual void | OnPreOutgoingConnect (JetByteTools::Win32::IIndexedOpaqueUserData &userData, const IAddress &address, const void *pUserData)=0 throw () |
| Called just before an outgoing connection is established, i.e. a 'client' connection. The userData is the user data associated with the socket that will attempt the connection. The address is the address that the socket will attempt to connect to and the pointer to user data is whatever was passed in as user data to the Connect(), ConnectNoThrow() or AsyncConnect() call. This is usually used to slot the pointer to user data into the sockets user data store before the connection is attempted; thus passing data from the connect call site to the connection establishment or failure callback and beyond. | |
| virtual void | OnPreOutgoingConnect (JetByteTools::Win32::IIndexedOpaqueUserData &userData, const IAddress &address, const void *pUserData)=0 throw () |
| Called just before an outgoing connection is established, i.e. a 'client' connection. The userData is the user data associated with the socket that will attempt the connection. The address is the address that the socket will attempt to connect to and the pointer to user data is whatever was passed in as user data to the Connect(), ConnectNoThrow() or AsyncConnect() call. This is usually used to slot the pointer to user data into the sockets user data store before the connection is attempted; thus passing data from the connect call site to the connection establishment or failure callback and beyond. | |
| bool | ConnectNoThrow (const IAddress &address) throw () |
| Attempts to connect the socket to the given address. Returns false on failure. | |
| static bool | ConnectNoThrow (SOCKET socket, const IAddress &address) throw () |
| Attempts to connect the supplied socket to the given address. Returns false on failure. | |
| virtual int | Run ()=0 throw () |
| The return value is the exit code of the thread that is run to execute the code. | |
Attempts to connect the supplied socket to the given address. Returns false on failure.
Attempts to connect the socket to the given address. Returns false on failure.
| virtual void OnPreOutgoingConnect | ( | JetByteTools::Win32::IIndexedOpaqueUserData & | userData, | |
| const IAddress & | address, | |||
| const void * | pUserData | |||
| ) | throw () [pure virtual, inherited] |
Called just before an outgoing connection is established, i.e. a 'client' connection. The userData is the user data associated with the socket that will attempt the connection. The address is the address that the socket will attempt to connect to and the pointer to user data is whatever was passed in as user data to the Connect(), ConnectNoThrow() or AsyncConnect() call. This is usually used to slot the pointer to user data into the sockets user data store before the connection is attempted; thus passing data from the connect call site to the connection establishment or failure callback and beyond.
Implemented in CStreamSocketConnectionManagerCallback, CStreamSocketServerCallback, CStreamSocketServerExCallback, CStreamSocketConnectionManagerCallback, and CStreamSocketServerCallback.
| virtual void OnPreOutgoingConnect | ( | JetByteTools::Win32::IIndexedOpaqueUserData & | userData, | |
| const IAddress & | address, | |||
| const void * | pUserData | |||
| ) | throw () [pure virtual, inherited] |
Called just before an outgoing connection is established, i.e. a 'client' connection. The userData is the user data associated with the socket that will attempt the connection. The address is the address that the socket will attempt to connect to and the pointer to user data is whatever was passed in as user data to the Connect(), ConnectNoThrow() or AsyncConnect() call. This is usually used to slot the pointer to user data into the sockets user data store before the connection is attempted; thus passing data from the connect call site to the connection establishment or failure callback and beyond.
Implemented in CDatagramSocketConnectionManagerCallback.
| B * Release | ( | ) | throw () [inline, inherited] |
| virtual int Run | ( | ) | throw () [pure virtual, inherited] |
The return value is the exit code of the thread that is run to execute the code.
| virtual bool TryRead | ( | JetByteTools::IO::IBuffer * | pBuffer | ) | throw () [pure virtual, inherited] |
Implemented in TAsyncSocket< JetByteTools::Socket::IPoolableDatagramSocket, JetByteTools::Socket::IDatagramSocketConnectionManager, JetByteTools::Socket::IDatagramSocketCallback >, and TAsyncSocket< JetByteTools::Socket::IPoolableStreamSocket, JetByteTools::Socket::IStreamSocketConnectionManager, JetByteTools::Socket::IStreamSocketCallback >.
| virtual bool TryRead | ( | JetByteTools::IO::IBuffer & | buffer | ) | throw () [pure virtual, inherited] |
Implemented in TAsyncSocket< JetByteTools::Socket::IPoolableDatagramSocket, JetByteTools::Socket::IDatagramSocketConnectionManager, JetByteTools::Socket::IDatagramSocketCallback >, and TAsyncSocket< JetByteTools::Socket::IPoolableStreamSocket, JetByteTools::Socket::IStreamSocketConnectionManager, JetByteTools::Socket::IStreamSocketCallback >.
| virtual bool TryRead | ( | ) | throw () [pure virtual, inherited] |
Implemented in TAsyncSocket< JetByteTools::Socket::IPoolableDatagramSocket, JetByteTools::Socket::IDatagramSocketConnectionManager, JetByteTools::Socket::IDatagramSocketCallback >, and TAsyncSocket< JetByteTools::Socket::IPoolableStreamSocket, JetByteTools::Socket::IStreamSocketConnectionManager, JetByteTools::Socket::IStreamSocketCallback >.
| virtual bool TrySendTo | ( | const IAddress & | address, | |
| JetByteTools::IO::IBuffer & | buffer | |||
| ) | throw () [pure virtual, inherited] |
| virtual bool TrySendTo | ( | const IAddress & | address, | |
| const BYTE * | pData, | |||
| const DataLength | dataLength | |||
| ) | throw () [pure virtual, inherited] |
| virtual bool TrySendTo | ( | const IAddress & | address, | |
| const char * | pData, | |||
| const DataLength | dataLength | |||
| ) | throw () [pure virtual, inherited] |
| virtual bool TryWrite | ( | JetByteTools::IO::IBuffer & | buffer | ) | throw () [pure virtual, inherited] |
| virtual bool TryWrite | ( | const BYTE * | pData, | |
| const DataLength | dataLength | |||
| ) | throw () [pure virtual, inherited] |
| virtual bool TryWrite | ( | const char * | pData, | |
| const DataLength | dataLength | |||
| ) | throw () [pure virtual, inherited] |
| virtual bool TryWrite | ( | JetByteTools::IO::IBuffer & | buffer | ) | throw () [pure virtual, inherited] |
Implemented in TAsyncSocket< JetByteTools::Socket::IPoolableDatagramSocket, JetByteTools::Socket::IDatagramSocketConnectionManager, JetByteTools::Socket::IDatagramSocketCallback >, and TAsyncSocket< JetByteTools::Socket::IPoolableStreamSocket, JetByteTools::Socket::IStreamSocketConnectionManager, JetByteTools::Socket::IStreamSocketCallback >.
| virtual bool TryWrite | ( | const BYTE * | pData, | |
| const DataLength | dataLength | |||
| ) | throw () [pure virtual, inherited] |
Implemented in TAsyncSocket< JetByteTools::Socket::IPoolableDatagramSocket, JetByteTools::Socket::IDatagramSocketConnectionManager, JetByteTools::Socket::IDatagramSocketCallback >, and TAsyncSocket< JetByteTools::Socket::IPoolableStreamSocket, JetByteTools::Socket::IStreamSocketConnectionManager, JetByteTools::Socket::IStreamSocketCallback >.
| virtual bool TryWrite | ( | const char * | pData, | |
| const DataLength | dataLength | |||
| ) | throw () [pure virtual, inherited] |
Implemented in TAsyncSocket< JetByteTools::Socket::IPoolableDatagramSocket, JetByteTools::Socket::IDatagramSocketConnectionManager, JetByteTools::Socket::IDatagramSocketCallback >, and TAsyncSocket< JetByteTools::Socket::IPoolableStreamSocket, JetByteTools::Socket::IStreamSocketConnectionManager, JetByteTools::Socket::IStreamSocketCallback >.
1.5.3