Christian unregistered
 |
|
- Please read this before you ask any questions.
- Homework questions are for you. You are the one who should solve
them. We are prepared to help you with your questions, but we don't
want to give you a complete solution. You should think on your own,
learning from your mistakes.
- Please try not to ask a C++ specific question in one of the Qt-related
forums. We have a separate C++ forum for this.
- If you ask something, make sure that you have told us everything
that could be related to your question/problem. Give us a detailed
description of your problem (plus the operating system you use and the Qt version),
and any associated source code that is neccessary to solve the problem.
- If your question contains source code, make sure that you make use
of the code tags. This means that you should put your code between
[ C O D E ] and [ / C O D E ]. This makes the code much more readable.
- If you have a really complex problem, it would be helpful if you could
attach a small - but complete - (g)zipped Qt project with a .pro file.
This is so that we can test the code quickly, meaning that you get a faster
response from us. You get the opportunity to attach files at the end
of every new thread/post form.
- If you want to show us something that is an image, please attach the image
file, rather than linking to it. This is because external hosting solutions can be
unreliable (images are deleted, server addresses change, etc).
Then, if the image is not available, other users who have the same problem†
won't be able to reconstruct the problem you had. If you attach your image,
it will always be available on our server.
- If we gave you a hint (a piece of source code or something else)
which solved your problem, please let us know about your success!
Something like "thanks - problem solved" is fine. Then, everyone
knows, "okay, this is the solution - I can use this."
And being polite - especially when someone did actually solve your
problem - is really appreciated.
|
|
25.08.2005 09:32 |
|
|
Sathyan
Coder

Registration Date: 17.11.2006
Posts: 18
Location: India(at Present in China)
Level: 16 [?]
Experience: 9,874
Next Level: 10,000
 |
|
| How to close a thread or post...?? |
 |
How to close a thread or post...??
|
|
15.12.2006 08:10 |
|
|
jan1024188
Senior Software Engineer
   
Registration Date: 02.02.2007
Posts: 76
Location: Slovenia
Level: 21 [?]
Experience: 35,832
Next Level: 38,246
 |
|
| RE: How to close a thread or post...?? |
 |
only moderators can close threads
__________________ www.jan1024188.com
|
|
13.03.2007 18:27 |
|
|
doctor
Coder


Registration Date: 12.07.2006
Posts: 12
Level: 16 [?]
Experience: 8,113
Next Level: 10,000
 |
|
What are those experience, levels and how this works. In the FAQ I can only see laconic statement in some germanic language (dutch ?).
|
|
19.08.2007 16:40 |
|
|
landy
Assistant
Registration Date: 22.08.2007
Posts: 1
Level: 6 [?]
Experience: 271
Next Level: 282
 |
|
|
22.08.2007 05:04 |
|
|
salmanq
Assistant
Registration Date: 12.09.2007
Posts: 1
Level: 6 [?]
Experience: 250
Next Level: 282
 |
|
|
12.09.2007 11:41 |
|
|
nistoriurie
Assistant
Registration Date: 08.12.2007
Posts: 3
Location: Moldova
Level: 8 [?]
Experience: 487
Next Level: 674
 |
|
| RE: QtForum.org Guidelines |
 |
Hello! I am trying to make a client-server peer with QSslSocket(QT-4.3 version). I don't understand how to setup the correct certificates and keys for server side and client side. How to make correctly these files? I setup CA certificate and rest of files with openssl command. When I run the client it accepts the connection, but my server refuses the connection with an error message: "The peer did not present any certificate". Can anyone help?
Thank you! Iurie
---------------- server code --------------------
void Server::incomingConnection(int socketDescriptor)
{
qDebug("New client connection incomming...%d ",socketDescriptor);
sslSocket = new QSslSocket(this);
sslSocket->setPrivateKey("serverkey.pem");
qDebug() << "private key:" << sslSocket->privateKey().isNull();
sslSocket->setLocalCertificate("servercrt.pem");
qDebug() << "certificate: " << sslSocket->localCertificate().isNull();
//sslSocket->ignoreSslErrors();
if(sslSocket->setSocketDescriptor(socketDescriptor))
{
connect(sslSocket,SIGNAL(encrypted()),this,SLOT(ready1()));
connect(sslSocket,SIGNAL(disconnected()),this,SLOT(Disconnected()));
connect(sslSocket,SIGNAL(readyRead()),this,SLOT(MyCommand()));
sslSocket->startServerEncryption();
qDebug() << sslSocket->errorString();
qDebug("coonection state: %d",sslSocket->state());
qDebug("connection mode: %d",sslSocket->mode());
}
else delete sslSocket;
}
--------------- client code --------------
sslSocket = new QSslSocket(this);
//sslSocket->setCaCertificates(sslSocket->defaultCaCertificates()); // what to do with this?????
sslSocket->setPrivateKey("clientkey.pem");
qDebug() << "private key is null: " << sslSocket->privateKey().isNull();
sslSocket->setLocalCertificate("clientcrt.pem");
qDebug()<< "certificate is null: "<< sslSocket->localCertificate().isNull();
connect(sslSocket,SIGNAL(encrypted()),this,SLOT(encryptedconnection()));
connect(sslSocket, SIGNAL(disconnected()),this,SLOT(Disconnected()));
sslSocket->connectToHostEncrypted("81.180.77.168",PORT);
qDebug()<<"peer certificate is null?:"<<sslSocket->peerCertificate().isNull();
qDebug() << sslSocket->errorString();
------------------------------------------
|
|
08.12.2007 13:55 |
|
|
newnikeshoes

Coder

Registration Date: 03.04.2008
Posts: 2
Location: china Jabber: colgle
Level: 4 [?]
Experience: 92
Next Level: 100
 |
|
all new models of shoes for sales in www.newnike-shoes.com |
 |
There are various styles and colors in our website(www.newnike-shoes.com).
we sell sport shoes,such as: a series of Nike,jordan,shox,max,puma,gucci,Adidas,Bape,AF1,Prada timerland
clothes,such as: hoody,jean,t-shirt,sleeve,coat jacket. clothes brand is GGG,coogi,Kidrobot,Artful Dodger,10Deep bape bbc ggg lrg a&f ggg evisu redmonkey lacoste polo and so on bag,suchas:Chanel,Gucci,Coach,CHLOE,Dior,Juicy,Prada,Guess,D&G,Versace,Fend
i and watch hat wallet
We update the products every day. Our products have got good reputation. We can supply various styles and colors, and our products have got a good reputation among dunk shoe factories.
please go to our website for more details:
website: www.newnike-shoes.com
MSN: newnike-shoes@hotmail.com
e-mail: newnike.shoes@yahoo.com.cn
__________________ Hello! welcome to our website; http://www.newnike-shoes.com
|
|
03.04.2008 06:59 |
|
|
sgh
Senior Software Engineer
   
Registration Date: 17.03.2008
Posts: 77
Level: 14 [?]
Experience: 4,801
Next Level: 5,517
 |
|
| RE: QtForum.org Guidelines |
 |
I like qt forum.
i visit this site, registry member and i already post some thread for a few days age.
then i have some questions.
i dont understand mail box icon where is left in main forum.
my icon always selected "Thread with own posts".
and who is assign Rank for everyone?
|
|
11.04.2008 12:01 |
|
|
|