

Public Member Functions | |
| CSharedLockDatagramSocket (const JetByteTools::Win32::IIndexedOpaqueUserData::UserDataIndex numberOfUserDataSlots, JetByteTools::Win32::ISharedCriticalSection &criticalSection) | |
| Create a socket with the specified number of user data slots and with the supplied instance of ISharedCriticalSection. | |
| virtual void | RecvFrom () |
| virtual void | RecvFrom (JetByteTools::IO::IBuffer *pBuffer) |
| virtual bool | TryRecvFrom () |
| virtual bool | TryRecvFrom (JetByteTools::IO::IBuffer *pBuffer) |
| virtual void | SendTo (const IAddress &address, const char *pData, const DataLength dataLength) |
| virtual void | SendTo (const IAddress &address, const BYTE *pData, const DataLength dataLength) |
| virtual void | SendTo (const IAddress &address, JetByteTools::IO::IBuffer &buffer) |
| virtual bool | TrySendTo (const IAddress &address, const char *pData, const DataLength dataLength) |
| virtual bool | TrySendTo (const IAddress &address, const BYTE *pData, const DataLength dataLength) |
| virtual bool | TrySendTo (const IAddress &address, JetByteTools::IO::IBuffer &buffer) |
| virtual void | JoinMulticastGroup (const IAddress &groupAddress, const IAddress &interfaceAddress) |
| virtual void | BlockMulticastGroupSource (const IAddress &groupAddress, const IAddress &interfaceAddress, const IAddress &sourceAddress) |
| virtual void | UnblockMulticastGroupSource (const IAddress &groupAddress, const IAddress &interfaceAddress, const IAddress &sourceAddress) |
| virtual void | LeaveMulticastGroup (const IAddress &groupAddress, const IAddress &interfaceAddress) |
| virtual void | IncludeMulticastSource (const IAddress &groupAddress, const IAddress &interfaceAddress, const IAddress &sourceAddress) |
| virtual void | ExcludeMulticastSource (const IAddress &groupAddress, const IAddress &interfaceAddress, const IAddress &sourceAddress) |
| virtual void | SetMulticastSendInterface (const IAddress &interfaceAddress, const TimeToLive multicastTTL=1, const bool enableLoopback=false) |
| virtual void | AbortConnection () |
Protected Member Functions | |
| virtual void | Read () |
| virtual void | Read (JetByteTools::IO::IBuffer &buffer) |
| virtual void | Read (JetByteTools::IO::IBuffer *pBuffer) |
| virtual void | Write (const char *pData, const JetByteTools::IO::IStream::DataLength dataLength) |
| virtual void | Write (const BYTE *pData, const JetByteTools::IO::IStream::DataLength dataLength) |
| virtual void | Write (JetByteTools::IO::IBuffer &buffer) |
| virtual bool | TryRead () throw () |
| virtual bool | TryRead (JetByteTools::IO::IBuffer &buffer) |
| virtual bool | TryRead (JetByteTools::IO::IBuffer *pBuffer) |
| virtual bool | TryWrite (const char *pData, const JetByteTools::IO::IStream::DataLength dataLength) throw () |
| virtual bool | TryWrite (const BYTE *pData, const JetByteTools::IO::IStream::DataLength dataLength) throw () |
| virtual bool | TryWrite (JetByteTools::IO::IBuffer &buffer) throw () |
| virtual void | Shutdown () |
| virtual void | Shutdown (const ShutdownHow how) |
| virtual CAddress | GetLocalAddress () const |
| virtual CAddress | GetRemoteAddress () const |
| virtual void | AddRef () |
| virtual void | Release () |
| virtual void | Attach (IPoolableSocketManager &manager, ISocketCallback &callback, SOCKET socket) |
| virtual void | AbortConnectionIfManagedBy (const IPoolableSocketManager &manager) |
| virtual void | HandleOperation (JetByteTools::IO::IBuffer *pBuffer, const DWORD ioSize, const DWORD lastError) |
| Implement IHandler. | |
| virtual void * | GetUserPointer (const JetByteTools::Win32::IIndexedOpaqueUserData::UserDataIndex index) const |
| virtual void | SetUserPointer (const JetByteTools::Win32::IIndexedOpaqueUserData::UserDataIndex index, void *pData) |
| virtual ULONG_PTR | GetUserData (const JetByteTools::Win32::IIndexedOpaqueUserData::UserDataIndex index) const |
| virtual void | SetUserData (const JetByteTools::Win32::IIndexedOpaqueUserData::UserDataIndex index, const ULONG_PTR data) |
| virtual void | WriteCompleted () |
| virtual JetByteTools::Win32::ICriticalSection & | GetLock () const |
| virtual void | Accepted () |
| virtual void | Connected () |
| virtual ConnectionDirection | GetConnectionDirection () const |
| virtual SOCKET | GetSocket () const |
| virtual bool | WritePending () |
| virtual void | ForceWritePending () |
| void | IncrementReferenceCountFromZero () |
| bool | IsValid () const |
Protected Attributes | |
| Manager * | m_pManager |
| Callback * | m_pCallback |
| SOCKET | m_socket |
| long | m_outstandingWrites |
| bool | m_writeShutdown |
| ConnectionDirection | m_direction |
| CSharedLockDatagramSocket | ( | const JetByteTools::Win32::IIndexedOpaqueUserData::UserDataIndex | numberOfUserDataSlots, | |
| JetByteTools::Win32::ISharedCriticalSection & | criticalSection | |||
| ) |
Create a socket with the specified number of user data slots and with the supplied instance of ISharedCriticalSection.
| void RecvFrom | ( | ) | [virtual, inherited] |
| void RecvFrom | ( | JetByteTools::IO::IBuffer * | pBuffer | ) | [virtual, inherited] |
| bool TryRecvFrom | ( | ) | [virtual, inherited] |
| bool TryRecvFrom | ( | JetByteTools::IO::IBuffer * | pBuffer | ) | [virtual, inherited] |
| void SendTo | ( | const IAddress & | address, | |
| const char * | pData, | |||
| const DataLength | dataLength | |||
| ) | [virtual, inherited] |
| void SendTo | ( | const IAddress & | address, | |
| const BYTE * | pData, | |||
| const DataLength | dataLength | |||
| ) | [virtual, inherited] |
| void SendTo | ( | const IAddress & | address, | |
| JetByteTools::IO::IBuffer & | buffer | |||
| ) | [virtual, inherited] |
| bool TrySendTo | ( | const IAddress & | address, | |
| const char * | pData, | |||
| const DataLength | dataLength | |||
| ) | [virtual, inherited] |
| bool TrySendTo | ( | const IAddress & | address, | |
| const BYTE * | pData, | |||
| const DataLength | dataLength | |||
| ) | [virtual, inherited] |
| bool TrySendTo | ( | const IAddress & | address, | |
| JetByteTools::IO::IBuffer & | buffer | |||
| ) | [virtual, inherited] |
| void JoinMulticastGroup | ( | const IAddress & | groupAddress, | |
| const IAddress & | interfaceAddress | |||
| ) | [virtual, inherited] |
| void BlockMulticastGroupSource | ( | const IAddress & | groupAddress, | |
| const IAddress & | interfaceAddress, | |||
| const IAddress & | sourceAddress | |||
| ) | [virtual, inherited] |
| void UnblockMulticastGroupSource | ( | const IAddress & | groupAddress, | |
| const IAddress & | interfaceAddress, | |||
| const IAddress & | sourceAddress | |||
| ) | [virtual, inherited] |
| void LeaveMulticastGroup | ( | const IAddress & | groupAddress, | |
| const IAddress & | interfaceAddress | |||
| ) | [virtual, inherited] |
| void IncludeMulticastSource | ( | const IAddress & | groupAddress, | |
| const IAddress & | interfaceAddress, | |||
| const IAddress & | sourceAddress | |||
| ) | [virtual, inherited] |
| void ExcludeMulticastSource | ( | const IAddress & | groupAddress, | |
| const IAddress & | interfaceAddress, | |||
| const IAddress & | sourceAddress | |||
| ) | [virtual, inherited] |
| void SetMulticastSendInterface | ( | const IAddress & | interfaceAddress, | |
| const TimeToLive | multicastTTL = 1, |
|||
| const bool | enableLoopback = false | |||
| ) | [virtual, inherited] |
| void AbortConnection | ( | ) | [virtual, inherited] |
Implements TAsyncSocket.
| void Read | ( | ) | [inline, protected, virtual, inherited] |
| void Read | ( | JetByteTools::IO::IBuffer & | buffer | ) | [inline, protected, virtual, inherited] |
| void Read | ( | JetByteTools::IO::IBuffer * | pBuffer | ) | [inline, protected, virtual, inherited] |
| void Write | ( | const char * | pData, | |
| const JetByteTools::IO::IStream::DataLength | dataLength | |||
| ) | [inline, protected, virtual, inherited] |
| void Write | ( | const BYTE * | pData, | |
| const JetByteTools::IO::IStream::DataLength | dataLength | |||
| ) | [inline, protected, virtual, inherited] |
| void Write | ( | JetByteTools::IO::IBuffer & | buffer | ) | [inline, protected, virtual, inherited] |
| bool TryRead | ( | ) | throw () [inline, protected, virtual, inherited] |
| bool TryRead | ( | JetByteTools::IO::IBuffer & | buffer | ) | [inline, protected, virtual, inherited] |
| bool TryRead | ( | JetByteTools::IO::IBuffer * | pBuffer | ) | [inline, protected, virtual, inherited] |
| bool TryWrite | ( | const char * | pData, | |
| const JetByteTools::IO::IStream::DataLength | dataLength | |||
| ) | throw () [inline, protected, virtual, inherited] |
| bool TryWrite | ( | const BYTE * | pData, | |
| const JetByteTools::IO::IStream::DataLength | dataLength | |||
| ) | throw () [inline, protected, virtual, inherited] |
| bool TryWrite | ( | JetByteTools::IO::IBuffer & | buffer | ) | throw () [inline, protected, virtual, inherited] |
| void Shutdown | ( | ) | [inline, protected, virtual, inherited] |
| void Shutdown | ( | const ShutdownHow | how | ) | [inline, protected, virtual, inherited] |
| CAddress GetLocalAddress | ( | ) | const [inline, protected, virtual, inherited] |
| CAddress GetRemoteAddress | ( | ) | const [inline, protected, virtual, inherited] |
Reimplemented in CDatagramServerSocket.
| void AddRef | ( | ) | [inline, protected, virtual, inherited] |
| void Release | ( | ) | [inline, protected, virtual, inherited] |
| void Attach | ( | IPoolableSocketManager & | manager, | |
| ISocketCallback & | callback, | |||
| SOCKET | socket | |||
| ) | [inline, protected, virtual, inherited] |
| void AbortConnectionIfManagedBy | ( | const IPoolableSocketManager & | manager | ) | [inline, protected, virtual, inherited] |
| void HandleOperation | ( | JetByteTools::IO::IBuffer * | pBuffer, | |
| const DWORD | ioSize, | |||
| const DWORD | lastError | |||
| ) | [inline, protected, virtual, inherited] |
Implement IHandler.
| void * GetUserPointer | ( | const JetByteTools::Win32::IIndexedOpaqueUserData::UserDataIndex | index | ) | const [inline, protected, virtual, inherited] |
| void SetUserPointer | ( | const JetByteTools::Win32::IIndexedOpaqueUserData::UserDataIndex | index, | |
| void * | pData | |||
| ) | [inline, protected, virtual, inherited] |
| ULONG_PTR GetUserData | ( | const JetByteTools::Win32::IIndexedOpaqueUserData::UserDataIndex | index | ) | const [inline, protected, virtual, inherited] |
| void SetUserData | ( | const JetByteTools::Win32::IIndexedOpaqueUserData::UserDataIndex | index, | |
| const ULONG_PTR | data | |||
| ) | [inline, protected, virtual, inherited] |
| void WriteCompleted | ( | ) | [inline, protected, virtual, inherited] |
| JetByteTools::Win32::ICriticalSection & GetLock | ( | ) | const [inline, protected, virtual, inherited] |
| void Accepted | ( | ) | [inline, protected, virtual, inherited] |
| void Connected | ( | ) | [inline, protected, virtual, inherited] |
| ConnectionDirection GetConnectionDirection | ( | ) | const [inline, protected, virtual, inherited] |
| SOCKET GetSocket | ( | ) | const [inline, protected, virtual, inherited] |
| bool WritePending | ( | ) | [inline, protected, virtual, inherited] |
| void ForceWritePending | ( | ) | [inline, protected, virtual, inherited] |
| void IncrementReferenceCountFromZero | ( | ) | [inline, protected, inherited] |
| bool IsValid | ( | ) | const [inline, protected, inherited] |
Manager* m_pManager [protected, inherited] |
Callback* m_pCallback [protected, inherited] |
long m_outstandingWrites [protected, inherited] |
bool m_writeShutdown [protected, inherited] |
ConnectionDirection m_direction [protected, inherited] |
1.5.3