![]() |
Clapkit
|
Defines a client TCP socket. More...
#include <ckNetClient.h>
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 () |
| virtual 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 () |
| CKError | __releaseStream () |
| void | __postNotifyEvent (unsigned short eventCode, unsigned short terminReason, struct ICMPReport *icmpMsg) |
| void | __postIOCompletionEvent (unsigned short csCode, bool result, TCPiopb *pb, bool countsPending, bool pbFromNewPtr) |
Protected Attributes inherited from CKNetBaseSocket | |
| UInt16 | __mactcpBufferSize = 8192 |
| Ptr | __mactcpBuffer = 0 |
| StreamPtr | __stream = 0 |
| bool | __hasStream = false |
| bool | __isConnected = false |
| UInt16 | __pendingAsyncOps = 0 |
Protected Attributes inherited from CKObject | |
| std::map< CKEventType, CKEventHandlerFunc > | __handlers |
| CKPropertyObserverFunc | propertyObserverCB = nullptr |
Defines a client TCP socket.
| CKNetClient::CKNetClient | ( | ) |
| CKNetClient::~CKNetClient | ( | ) |
|
virtual |
|
virtual |
| bool CKNetClient::IsConnected | ( | ) |
|
virtual |
|
virtual |