Change socketDescriptor to type qintptr
This commit is contained in:
parent
016694f1fe
commit
f5f04e6cb9
@ -41,7 +41,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>
|
||||
|
||||
static QThreadStorage<QString*> connId;
|
||||
|
||||
RpcConnection::RpcConnection(int socketDescriptor,
|
||||
RpcConnection::RpcConnection(qintptr socketDescriptor,
|
||||
::google::protobuf::Service *service)
|
||||
: socketDescriptor(socketDescriptor),
|
||||
service(service)
|
||||
|
@ -43,7 +43,7 @@ class RpcConnection : public QObject
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
RpcConnection(int socketDescriptor, ::google::protobuf::Service *service);
|
||||
RpcConnection(qintptr socketDescriptor, ::google::protobuf::Service *service);
|
||||
virtual ~RpcConnection();
|
||||
|
||||
static void connIdMsgHandler(QtMsgType type,
|
||||
@ -67,7 +67,7 @@ private slots:
|
||||
void on_clientSock_disconnected();
|
||||
|
||||
private:
|
||||
int socketDescriptor;
|
||||
qintptr socketDescriptor;
|
||||
QTcpSocket *clientSock;
|
||||
|
||||
::google::protobuf::Service *service;
|
||||
|
@ -62,7 +62,7 @@ bool RpcServer::registerService(::google::protobuf::Service *service,
|
||||
return true;
|
||||
}
|
||||
|
||||
void RpcServer::incomingConnection(int socketDescriptor)
|
||||
void RpcServer::incomingConnection(qintptr socketDescriptor)
|
||||
{
|
||||
QThread *thread = new QThreadX; // FIXME:QThreadX pending Qt4.4+
|
||||
RpcConnection *conn = new RpcConnection(socketDescriptor, service);
|
||||
|
@ -47,7 +47,7 @@ signals:
|
||||
void notifyClients(int notifType, SharedProtobufMessage notifData);
|
||||
|
||||
protected:
|
||||
void incomingConnection(int socketDescriptor);
|
||||
void incomingConnection(qintptr socketDescriptor);
|
||||
|
||||
private:
|
||||
::google::protobuf::Service *service;
|
||||
|
Loading…
Reference in New Issue
Block a user