![]() |
Gray C++ Libraries
0.0.2
A set of C++ libraries for MSVC, GNU on Windows, WinCE, Linux
|
#include <cNetServer.h>
Public Member Functions | |
| cNetServerPort () | |
| cNetServerPort (const cNetAddress &rSockAddr) | |
| HASHCODE_t | get_HashCode () const noexcept |
| HRESULT | SetAddress (const cNetAddress &rSockAddr) |
| HRESULT | CreateBindAndListen () |
Public Member Functions inherited from Gray::cRefBase | |
| cRefBase (int iRefCount=0) noexcept | |
| virtual | ~cRefBase () |
| int | get_RefCount () const noexcept |
| HASHCODE_t | get_HashCode () const noexcept |
| STDMETHOD_ (HASHCODE_t, get_HashCodeX)() const noexcept | |
| virtual void | onFinalRelease () |
| bool | isValidObj () const noexcept |
| STDMETHOD_ (ULONG, AddRef)(void) override | |
| STDMETHOD_ (ULONG, Release)(void) override | |
| STDMETHOD() | QueryInterface (const IID &riid, void __RPC_FAR *__RPC_FAR *ppvObject) override |
| void | IncRefCount () |
| void | DecRefCount () |
| bool | isStaticConstruct () const noexcept |
| void | StaticConstruct () |
| void | StaticDestruct () |
| bool | isDestructing () noexcept |
| void | SetDestructing () |
Public Attributes | |
| cNetAddress | m_SockAddr |
| What local address am i bound to? (or should be bound to) may be all adapter/interfaces for the same family. More... | |
| cProtocolFactories | m_Factories |
| What protocols does this port support/prefer ? More... | |
| cNetSocket | m_Socket |
| Open listen socket. More... | |
a single listen/incoming port for cNetServer. It can have its own set of preferred protocols with cProtocolFactories. Locked to a single sa_family_t. e.g. AF_INET, AF_INET6, etc. May be specific to adapter. (or be on all adapter/interfaces for the same family)
| GrayLib::cNetServerPort::cNetServerPort | ( | ) |
Expect SetAddress() to be called.
| GrayLib::cNetServerPort::cNetServerPort | ( | const cNetAddress & | rSockAddr | ) |
| HRESULT GrayLib::cNetServerPort::CreateBindAndListen | ( | ) |
Create the socket. bind it and start listen. If the listen socket is on random port then figure out what port i got and return it in m_SockAddr
|
inlinenoexcept |
| HRESULT GrayLib::cNetServerPort::SetAddress | ( | const cNetAddress & | rSockAddr | ) |
Monitor/listen on this new local socket address/port.
| cProtocolFactories GrayLib::cNetServerPort::m_Factories |
What protocols does this port support/prefer ?
| cNetAddress GrayLib::cNetServerPort::m_SockAddr |
What local address am i bound to? (or should be bound to) may be all adapter/interfaces for the same family.
| cNetSocket GrayLib::cNetServerPort::m_Socket |
Open listen socket.