KVIrc  4.9.2
DeveloperAPIs
Functions | Variables
KvsObject_socket.cpp File Reference
#include "KvsObject_socket.h"
#include "KvsObject_memoryBuffer.h"
#include "KvsObject_file.h"
#include "kvi_settings.h"
#include "KviQString.h"
#include "kvi_debug.h"
#include "KviFile.h"
#include "KviFileUtils.h"
#include "KviLocale.h"
#include "KviNetUtils.h"
#include "KviDnsResolver.h"
#include "KviError.h"
#include "kvi_socket.h"
#include "KviMemory.h"
#include "KviDataBuffer.h"
#include <QByteArray>
#include <QTcpSocket>
#include <QUdpSocket>
#include <QHostAddress>

Functions

 if (m_pSocket &&!bIsSetFromExternal)
 
 if (m_pServer) delete m_pServer
 
 KVSO_CLASS_FUNCTION (socket, status)
 
 KVSO_CLASS_FUNCTION (socket, close)
 
 KVSO_CLASS_FUNCTION (socket, remotePort)
 
 KVSO_CLASS_FUNCTION (socket, remoteIp)
 
 KVSO_CLASS_FUNCTION (socket, localPort)
 
 KVSO_CLASS_FUNCTION (socket, bytesAvailable)
 
 KVSO_CLASS_FUNCTION (socket, localIp)
 
 KVSO_CLASS_FUNCTION (socket, read)
 
 KVSO_CLASS_FUNCTION (socket, write)
 
 KVSO_CLASS_FUNCTION (socket, setProtocol)
 
 KVSO_CLASS_FUNCTION (socket, functionConnect)
 
 KVSO_CLASS_FUNCTION (socket, listen)
 
 KVSO_CLASS_FUNCTION (socket, incomingConnectionEvent)
 
 KVSO_CLASS_FUNCTION (socket, dataAvailableEvent)
 
 KVSO_CLASS_FUNCTION (socket, connectedEvent)
 
 KVSO_CLASS_FUNCTION (socket, disconnectedEvent)
 
 KVSO_CLASS_FUNCTION (socket, errorEvent)
 
 KVSO_CLASS_FUNCTION (socket, hostFoundEvent)
 
 KVSO_CLASS_FUNCTION (socket, stateChangedEvent)
 

Variables

 m_pServer = nullptr
 
 m_pSocket = nullptr
 
const char *const sockerrors_tbl []
 
const char *const sockstate_tbl []
 

Function Documentation

if ( m_pSocket &&!  bIsSetFromExternal)

References m_pSocket.

if ( m_pServer  )
KVSO_CLASS_FUNCTION ( socket  ,
status   
)

References c, and m_pSocket.

KVSO_CLASS_FUNCTION ( socket  ,
close   
)

References c, m_pSocket, and Q_UNUSED().

KVSO_CLASS_FUNCTION ( socket  ,
remotePort   
)

References c, and m_pSocket.

KVSO_CLASS_FUNCTION ( socket  ,
remoteIp   
)

References c, and m_pSocket.

KVSO_CLASS_FUNCTION ( socket  ,
localPort   
)

References c, and m_pSocket.

KVSO_CLASS_FUNCTION ( socket  ,
bytesAvailable   
)

References c, and m_pSocket.

KVSO_CLASS_FUNCTION ( socket  ,
localIp   
)

References c, and m_pSocket.

KVSO_CLASS_FUNCTION ( socket  ,
read   
)
KVSO_CLASS_FUNCTION ( socket  ,
write   
)
KVSO_CLASS_FUNCTION ( socket  ,
setProtocol   
)
KVSO_CLASS_FUNCTION ( socket  ,
functionConnect   
)
KVSO_CLASS_FUNCTION ( socket  ,
listen   
)
KVSO_CLASS_FUNCTION ( socket  ,
incomingConnectionEvent   
)

References c.

KVSO_CLASS_FUNCTION ( socket  ,
dataAvailableEvent   
)

References c.

KVSO_CLASS_FUNCTION ( socket  ,
connectedEvent   
)

References c.

KVSO_CLASS_FUNCTION ( socket  ,
disconnectedEvent   
)

References c.

KVSO_CLASS_FUNCTION ( socket  ,
errorEvent   
)

References c.

KVSO_CLASS_FUNCTION ( socket  ,
hostFoundEvent   
)

References c.

KVSO_CLASS_FUNCTION ( socket  ,
stateChangedEvent   
)

References c.

Variable Documentation

m_pServer = nullptr
m_pSocket = nullptr
const char* const sockerrors_tbl[]
Initial value:
= {
"ConnectionRefused",
"RemoteHostClosed",
"HostNotFound",
"SocketAccess",
"SocketResource",
"SocketTimeout",
"DatagramTooLarge",
"Network",
"AddressInUse",
"SocketAddressNotAvailable",
"UnsupportedSocketOperation",
"ProxyAuthenticationRequired",
"SslHandshakeFailed",
"UnfinishedSocketOperation",
"ProxyConnectionRefused",
"ProxyConnectionClosed",
"ProxyConnectionTimeout",
"ProxyNotFound",
"ProxyProtocol",
"UnknownSocket"
}

Referenced by KvsObject_socket::slotError().

const char* const sockstate_tbl[]
Initial value:
= {
"Unconnected",
"HostLookUp",
"Connecting",
"Connected",
"Bound",
"Listening",
"Closing"
}

Referenced by KvsObject_socket::getStateString().