Clapkit
Loading...
Searching...
No Matches
CKNetClient Class Reference

Defines a client TCP socket. More...

#include <ckNetClient.h>

Inheritance diagram for CKNetClient:
CKNetBaseSocket CKObject

Public Member Functions

 CKNetClient ()
 
 ~CKNetClient ()
 
virtual CKError Connect (const char *address, UInt16 port)
 
virtual CKError Connect (CKIPAddress address, UInt16 port)
 
virtual CKError Read (void *out, short len, short *actuallyRead)
 
virtual CKError Write (const void *data, UInt32 len)
 
bool IsConnected ()
 
- Public Member Functions inherited from CKNetBaseSocket
 CKNetBaseSocket ()
 
 ~CKNetBaseSocket ()
 
virtual void Close ()
 
void SetBufferSize (UInt16 size)
 
UInt16 GetBufferSize ()
 
void Loop ()
 
- Public Member Functions inherited from CKObject
 CKObject ()
 
virtual ~CKObject ()
 
virtual void AddHandler (CKEventType type, CKEventHandlerFunc cb)
 
virtual void RemoveHandler (CKEventType type)
 
virtual bool HasHandler (CKEventType type) const
 
virtual bool HandleEvent (const CKEvent &evt)
 
virtual void SetPropertyObserver (CKPropertyObserverFunc cb)
 
virtual void UnsetPropertyObserver ()
 
virtual void RaisePropertyChange (const char *propertyName)
 

Additional Inherited Members

- Protected Member Functions inherited from CKNetBaseSocket
CKError __openStream ()
 
CKError __closeStream ()
 
void __postNotifyEvent (unsigned short eventCode, unsigned short terminReason, struct ICMPReport *icmpMsg)
 
void __postIOCompletionEvent (unsigned short csCode, bool result)
 
- Protected Attributes inherited from CKNetBaseSocket
UInt16 __mactcpBufferSize = 8192
 
Ptr __mactcpBuffer = 0
 
StreamPtr __stream = 0
 
bool __hasStream = false
 
bool __isConnected = false
 
- Protected Attributes inherited from CKObject
std::map< CKEventType, CKEventHandlerFunc__handlers
 
CKPropertyObserverFunc propertyObserverCB = nullptr
 

Detailed Description

Defines a client TCP socket.

Constructor & Destructor Documentation

◆ CKNetClient()

CKNetClient::CKNetClient ( )

◆ ~CKNetClient()

CKNetClient::~CKNetClient ( )

Member Function Documentation

◆ Connect() [1/2]

CKError CKNetClient::Connect ( CKIPAddress  address,
UInt16  port 
)
virtual

◆ Connect() [2/2]

CKError CKNetClient::Connect ( const char *  address,
UInt16  port 
)
virtual

◆ IsConnected()

bool CKNetClient::IsConnected ( )

◆ Read()

CKError CKNetClient::Read ( void *  out,
short  len,
short *  actuallyRead 
)
virtual

◆ Write()

CKError CKNetClient::Write ( const void *  data,
UInt32  len 
)
virtual

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