ZFFramework
 
Loading...
Searching...
No Matches
ZFPInterface_ZFUdp Class Referenceabstract

protocol for ZFUdp More...

#include <ZFProtocolZFUdp.h>

Inheritance diagram for ZFPInterface_ZFUdp:
ZFProtocol

Public Member Functions

virtual const zfcharprotocolName (void) const
 get the name of the protocol module, e.g. "ZFObject"
 
virtual void * open (ZFUdp *owner, zfuint port)=0
 see ZFUdp::open
 
virtual void close (ZFUdp *owner, void *nativeSocket)=0
 see ZFUdp::close
 
virtual void * addrResolve (const zfstring &host)=0
 see ZFUdp::addrResolve
 
virtual void addrRelease (void *nativeAddr)=0
 see ZFUdp::addrResolve
 
virtual zfbool remoteInfo (void *nativeAddr, zfstring &remoteAddr)=0
 see ZFUdpAddr::remoteInfo
 
virtual zfbool send (ZFUdp *owner, void *nativeSocket, void *nativeAddr, zfuint port, const void *data, zfindex size)=0
 see ZFUdp::send
 
virtual zfstring recv (ZFUdp *owner, void *nativeSocket, void *&nativeAddr, zfuint &port, zftimet timeout)=0
 see ZFUdp::recv
 
- Public Member Functions inherited from ZFProtocol
virtual void protocolOnInit (void)
 called to init the protocol
 
virtual void protocolOnInitFinish (void)
 see protocolOnInit
 
virtual void protocolOnDeallocPrepare (void)
 see protocolOnInit
 
virtual void protocolOnDealloc (void)
 see protocolOnInit
 
virtual ZFProtocolInstanceState protocolInstanceState (void)
 protocol instance's state
 
virtual const zfcharprotocolImplName (void) const
 get the name of the protocol implementation, e.g. "ZFObject_default"
 
virtual ZFProtocolLevel protocolImplLevel (void) const
 get the level of the protocol implementation
 
virtual const zfcharprotocolImplPlatformHint (void) const
 get type hint of the implementation or empty string if not defined, e.g. "iOS:NSString" for iOS's string impl, use ZFPROTOCOL_IMPLEMENTATION_PLATFORM_HINT to register
 
virtual void objectInfoT (zfstring &ret) const
 see objectInfo
 
virtual zfstring objectInfo (void) const
 get a short info about this object
 

Protected Types

typedef ZFProtocol zfsuper
 class ref to super
 
typedef ZFPInterface_ZFUdp zfself
 class ref to self
 

Detailed Description

protocol for ZFUdp

Member Function Documentation

◆ protocolName()

virtual const zfchar * ZFPInterface_ZFUdp::protocolName ( void ) const
inlinevirtual

get the name of the protocol module, e.g. "ZFObject"

Reimplemented from ZFProtocol.


The documentation for this class was generated from the following file: