11#ifndef SOCKETCONNECTION_H
12#define SOCKETCONNECTION_H
20#include <QSslConfiguration>
28#include <arpa/telnet.h>
30#include "ProcessDataStream.h"
57 void connectionStarted();
58 void connectionEnded(QString message =
"");
59 void dataStreamComplete(QByteArray &b,
bool tn3270e);
60 void encryptedConnection(Q3270::Encryption e);
64 void sslErrors(
const QList<QSslError> &errors);
65 void socketStateChanged(QAbstractSocket::SocketState state);
66 void error(QAbstractSocket::SocketError socketError);
67 void socketEncrypted();
77 Q3270::TelnetState telnetState;
78 QSslSocket *dataSocket;
80 QDataStream dataStream;
86 QByteArray incomingData;
87 QByteArray subNegotiationBuffer;
89 void processSubNegotiation();
91 const char *tn3270e_functions_strings[5] = {
"BIND_IMAGE",
"DATA_STREAM_CTL",
"RESPONSES",
"SCS_CTL_CODES",
"SYSREQ" };
93 QString tn3270e_terminal_types[5] = {
"IBM-3279-2-E",
"IBM-3279-3-E",
"IBM-3279-4-E",
"IBM-3279-5-E",
"IBM-DYNAMIC" };
95 char tn32703_functions_flags[5];
97 void dump(QByteArray &a, QString title);
Definition ProcessDataStream.h:27
Definition SocketConnection.h:35
~SocketConnection()
SocketConnection::~SocketConnection - destructor.
Definition SocketConnection.cpp:84
void sendResponse(QByteArray &b)
SocketConnection::sendResponse - send data back to the host.
Definition SocketConnection.cpp:485
void opened()
SocketConnection::opened - successful open of socket.
Definition SocketConnection.cpp:97
void connectMainframe(const QString &address, quint16 port, const QString luName, ProcessDataStream *d)
SocketConnection::connectMainframe - called when the user connects to a host.
Definition SocketConnection.cpp:140
QList< QSslCertificate > getCertDetails()
SocketConnection::getCertDetails()
Definition SocketConnection.cpp:225
void disconnectMainframe()
SocketConnection::disconnectMainframe - slot called when the connection is terminated.
Definition SocketConnection.cpp:120
void setVerify(bool v)
SocketConnection::setVerify - indicate that the certificates should be verified for a secure connecti...
Definition SocketConnection.cpp:61
void closed()
SocketConnection::closed - socket has been closed.
Definition SocketConnection.cpp:109
void setSecure(bool s)
SocketConnection::setSecure - indicate that this connection should be secured.
Definition SocketConnection.cpp:50