Changeset 561 for trunk/src/network/socket/qlocalsocket.cpp
- Timestamp:
- Feb 11, 2010, 11:19:06 PM (15 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
-
Property svn:mergeinfo
set to (toggle deleted branches)
/branches/vendor/nokia/qt/4.6.1 merged eligible /branches/vendor/nokia/qt/current merged eligible /branches/vendor/trolltech/qt/current 3-149
-
Property svn:mergeinfo
set to (toggle deleted branches)
-
trunk/src/network/socket/qlocalsocket.cpp
r2 r561 2 2 ** 3 3 ** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies). 4 ** Contact: Qt Software Information (qt-info@nokia.com) 4 ** All rights reserved. 5 ** Contact: Nokia Corporation (qt-info@nokia.com) 5 6 ** 6 7 ** This file is part of the QtNetwork module of the Qt Toolkit. … … 21 22 ** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. 22 23 ** 23 ** In addition, as a special exception, Nokia gives you certain 24 ** additional rights. These rights are described in the Nokia Qt LGPL 25 ** Exception version 1.0, included in the file LGPL_EXCEPTION.txt in this 26 ** package. 24 ** In addition, as a special exception, Nokia gives you certain additional 25 ** rights. These rights are described in the Nokia Qt LGPL Exception 26 ** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. 27 27 ** 28 28 ** GNU General Public License Usage … … 34 34 ** met: http://www.gnu.org/copyleft/gpl.html. 35 35 ** 36 ** If you are unsure which license is appropriate for your use, please37 ** contact the sales department at qt-sales@nokia.com.36 ** If you have questions regarding the use of this file, please contact 37 ** Nokia at qt-info@nokia.com. 38 38 ** $QT_END_LICENSE$ 39 39 ** … … 64 64 which blocks until the operation is complete or the timeout expires. 65 65 66 Note that this feature is not supported on Window 9x. 66 Note that this feature is not supported on versions of Windows earlier than 67 Windows XP. 67 68 68 69 \sa QLocalServer … … 103 104 specified by \a socketState. 104 105 105 Note:It is not possible to initialize two local sockets with the same106 \note It is not possible to initialize two local sockets with the same 106 107 native socket descriptor. 107 108 … … 208 209 returns false. 209 210 210 Note:The socket's state must be ConnectedState before reading211 \note The socket's state must be ConnectedState before reading 211 212 and writing can occur. 212 213 213 \sa state() 214 \sa state(), connectToServer() 214 215 */ 215 216 … … 244 245 245 246 /*! 246 \fn bool QLocalSocket::waitForConnected(int msec )247 248 Waits until the socket is connected, up to \a msec milliseconds. If the247 \fn bool QLocalSocket::waitForConnected(int msecs) 248 249 Waits until the socket is connected, up to \a msecs milliseconds. If the 249 250 connection has been established, this function returns true; otherwise 250 251 it returns false. In the case where it returns false, you can call … … 256 257 \snippet doc/src/snippets/code/src_network_socket_qlocalsocket_unix.cpp 0 257 258 258 If msecs is -1, this function will not time out.259 If \a msecs is -1, this function will not time out. 259 260 260 261 \sa connectToServer(), connected() … … 275 276 \snippet doc/src/snippets/code/src_network_socket_qlocalsocket_unix.cpp 1 276 277 277 If msecs is -1, this function will not time out.278 If \a msecs is -1, this function will not time out. 278 279 279 280 \sa disconnectFromServer(), close() … … 310 311 311 312 QLocalSocket::LocalSocketError is not a registered metatype, so for queued 312 connections, you will have to register it with Q_DECLARE_METATYPE. 313 314 \sa error(), errorString() 313 connections, you will have to register it with Q_DECLARE_METATYPE() and 314 qRegisterMetaType(). 315 316 \sa error(), errorString(), {Creating Custom Qt Types} 315 317 */ 316 318 … … 322 324 323 325 QLocalSocket::SocketState is not a registered metatype, so for queued 324 connections, you will have to register it with Q_DECLARE_METATYPE. 325 326 \sa state() 326 connections, you will have to register it with Q_DECLARE_METATYPE() and 327 qRegisterMetaType(). 328 329 \sa state(), {Creating Custom Qt Types} 327 330 */ 328 331 … … 366 369 Returns the server path that the socket is connected to. 367 370 368 Note: This is platform specific371 \note The return value of this function is platform specific. 369 372 370 373 \sa connectToServer(), serverName() … … 469 472 break; 470 473 default: 471 debug << "QLocalSocket::SocketError(" << int(error) << ")";474 debug << "QLocalSocket::SocketError(" << int(error) << ')'; 472 475 break; 473 476 } … … 491 494 break; 492 495 default: 493 debug << "QLocalSocket::SocketState(" << int(state) << ")";496 debug << "QLocalSocket::SocketState(" << int(state) << ')'; 494 497 break; 495 498 }
Note:
See TracChangeset
for help on using the changeset viewer.