Q3270
A Qt-based 3270 Terminal Emulator
Loading...
Searching...
No Matches
SocketConnection Class Reference
Inheritance diagram for SocketConnection:

Public Slots

void connectMainframe (const QString &address, quint16 port, const QString luName, ProcessDataStream *d)
 SocketConnection::connectMainframe - called when the user connects to a host.
 
void disconnectMainframe ()
 SocketConnection::disconnectMainframe - slot called when the connection is terminated.
 
void opened ()
 SocketConnection::opened - successful open of socket.
 
void closed ()
 SocketConnection::closed - socket has been closed.
 

Signals

void connectionStarted ()
 
void connectionEnded (QString message="")
 
void dataStreamComplete (QByteArray &b, bool tn3270e)
 
void encryptedConnection (Q3270::Encryption e)
 

Public Member Functions

 SocketConnection (int modelType)
 SocketConnection::SocketConnection - handle incoming TCPIP data.
 
 ~SocketConnection ()
 SocketConnection::~SocketConnection - destructor.
 
void setSecure (bool s)
 SocketConnection::setSecure - indicate that this connection should be secured.
 
void setVerify (bool v)
 SocketConnection::setVerify - indicate that the certificates should be verified for a secure connection.
 
void sendResponse (QByteArray &b)
 SocketConnection::sendResponse - send data back to the host.
 
QList< QSslCertificate > getCertDetails ()
 SocketConnection::getCertDetails()
 

Constructor & Destructor Documentation

◆ SocketConnection()

SocketConnection::SocketConnection ( int  modelType)
explicit

SocketConnection::SocketConnection - handle incoming TCPIP data.

Parameters
modelType- the terminal model type

When a TCPIP connection is started, this routine handles the negotiation with the host. The terminal type is used when negotiating the capability of the host.

Signals are connected for when the socket is successfully opened, closed and when there is data to be read.

◆ ~SocketConnection()

SocketConnection::~SocketConnection ( )

SocketConnection::~SocketConnection - destructor.

Disconnect the signals that were established and delete the socket.

Member Function Documentation

◆ closed

void SocketConnection::closed ( )
slot

SocketConnection::closed - socket has been closed.

Slot called when the socket has been closed.

◆ connectMainframe

void SocketConnection::connectMainframe ( const QString &  address,
quint16  port,
const QString  luName,
ProcessDataStream d 
)
slot

SocketConnection::connectMainframe - called when the user connects to a host.

Parameters
address- the target IP address
port- the target port
luName- the target LU name (may be empty)
d- the ProcessDataStream object

Called when the user connects to a host. The address, port are used to establish the connection and the LU name is stored for later in the negotiation sequence. The ProcessDataStream object is passed so that the ProcessDataStream can pass data back to the host.

◆ disconnectMainframe

void SocketConnection::disconnectMainframe ( )
slot

SocketConnection::disconnectMainframe - slot called when the connection is terminated.

Called when the user closes the connection.

◆ getCertDetails()

QList< QSslCertificate > SocketConnection::getCertDetails ( )

SocketConnection::getCertDetails()

Returns
The certfiicate chain

Called to fetch certificate details for Certificate Display dialog

◆ opened

void SocketConnection::opened ( )
slot

SocketConnection::opened - successful open of socket.

Slot called when the socket is successfully opened.

◆ sendResponse()

void SocketConnection::sendResponse ( QByteArray &  b)

SocketConnection::sendResponse - send data back to the host.

Parameters
b- the byte array containing the data

Send data back to the host. This may be prefixed with a TN3270E header if TN3270E negotiation happened earlier.

◆ setSecure()

void SocketConnection::setSecure ( bool  s)

SocketConnection::setSecure - indicate that this connection should be secured.

Signalled when the user selects the 'Secure Connection' option in the dialog

◆ setVerify()

void SocketConnection::setVerify ( bool  v)

SocketConnection::setVerify - indicate that the certificates should be verified for a secure connection.

Signalled when the user selects the 'Verfiy Certficates' option in the dialog


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