libHSPlasma
Public Member Functions | Protected Attributes | List of all members
pnRC4Socket Class Reference

#include <pnRC4.h>

Inheritance diagram for pnRC4Socket:
pnSocket

Public Member Functions

 pnRC4Socket ()
 pnRC4Socket (int handle)
void init (size_t keySize, const unsigned char *keyData)
virtual long send (const void *buf, size_t size)
virtual long recv (void *buf, size_t size)
virtual long peek (void *buf, size_t size)
- Public Member Functions inherited from pnSocket
 pnSocket ()
 pnSocket (int handle)
virtual ~pnSocket ()
plString getRemoteIpStr () const
int getHandle () const
bool connect (const char *address, unsigned short port)
bool bind (unsigned short port)
pnSocketlisten (int backlog)
void close (bool force=false)
void unlink ()
void link (int handle)
long rsize ()
plString recvString (size_t maxlen)
bool sendMsg (const msgparm_t *data, const pnNetMsg *msg)
msgparm_trecvMsg (const pnNetMsg *msg)
bool isConnected () const
bool waitForData (unsigned int utimeout=500000)

Protected Attributes

RC4_KEY fSend
RC4_KEY fRecv
hsMutex fSendLock
hsMutex fRecvLock
bool fEncrypted
- Protected Attributes inherited from pnSocket
int fSockHandle
bool fConnected

Additional Inherited Members

- Static Public Member Functions inherited from pnSocket
static unsigned long GetAddress (const char *addrName)

Constructor & Destructor Documentation

pnRC4Socket::pnRC4Socket ( )
pnRC4Socket::pnRC4Socket ( int  handle)

Member Function Documentation

void pnRC4Socket::init ( size_t  keySize,
const unsigned char *  keyData 
)
virtual long pnRC4Socket::peek ( void *  buf,
size_t  size 
)
virtual

Reimplemented from pnSocket.

virtual long pnRC4Socket::recv ( void *  buf,
size_t  size 
)
virtual

Reimplemented from pnSocket.

virtual long pnRC4Socket::send ( const void *  buf,
size_t  size 
)
virtual

Reimplemented from pnSocket.

Member Data Documentation

bool pnRC4Socket::fEncrypted
protected
RC4_KEY pnRC4Socket::fRecv
protected
hsMutex pnRC4Socket::fRecvLock
protected
RC4_KEY pnRC4Socket::fSend
protected
hsMutex pnRC4Socket::fSendLock
protected

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