My problem is that.
I need to develop a programming connect to server to get Video, but server request UserName, PassWord. I don't know how to slove this. I use QtcpSocket
thanks so much
My problem is that.
I need to develop a programming connect to server to get Video, but server request UserName, PassWord. I don't know how to slove this. I use QtcpSocket
thanks so much
Without knowing the transmission protocol nor your code there is nothing we can do for you.
thanks
this is my codeif we don't have userName,passWord everyone can connect and get my private data?Qt Code:
void Hello::connect(char* serverName, int port){ QTcpSocket socket; //socket.connectToHost(serverName,port); if(socket.waitForConnected(6000)==true) { qDebug()<<"Successfully"; } else{ qDebug()<<socket.errorString(); return; }To copy to clipboard, switch view to plain text mode
thanks
Still not enough information. What kind of protocol do you want to use? Http, Ftp, Nntp, ... ?
No, what do you use on top of TCP?
Then I think you may want to use some higher level class such as QNetworkAccessManager or QFtp instead of QTcpSocket as I think you know FTP protocol requires at least two sockets.
Bookmarks