KDECore
Go to the documentation of this file.
28 #include <config-network.h>
39 static bool hasStarted =
false;
43 WORD wVersionRequested = MAKEWORD( 2, 2 );
44 WSAStartup( wVersionRequested, &wsaData );
50 using namespace KNetwork;
52 class KNetwork::KSocketBasePrivate
64 : mutex(QMutex::Recursive)
69 : d(new KSocketBasePrivate)
88 d->socketOptions = opts;
94 return d->socketOptions;
154 QMutexLocker locker(
mutex());
170 QMutexLocker locker(
mutex());
177 d->capabilities |= add;
178 d->capabilities &= ~remove;
179 return d->capabilities;
184 return d->device != 0L;
189 d->socketError =
error;
214 reason =
i18nc(
"Socket error code NoError",
"no error");
218 reason =
i18nc(
"Socket error code LookupFailure",
219 "name lookup has failed");
223 reason =
i18nc(
"Socket error code AddressInUse",
224 "address already in use");
228 reason =
i18nc(
"Socket error code AlreadyBound",
229 "socket is already bound");
233 reason =
i18nc(
"Socket error code AlreadyCreated",
234 "socket is already created");
238 reason =
i18nc(
"Socket error code NotBound",
239 "socket is not bound");
243 reason =
i18nc(
"Socket error code NotCreated",
244 "socket has not been created");
248 reason =
i18nc(
"Socket error code WouldBlock",
249 "operation would block");
253 reason =
i18nc(
"Socket error code ConnectionRefused",
254 "connection actively refused");
258 reason =
i18nc(
"Socket error code ConnectionTimedOut",
259 "connection timed out");
263 reason =
i18nc(
"Socket error code InProgress",
264 "operation is already in progress");
268 reason =
i18nc(
"Socket error code NetFailure",
269 "network failure occurred");
273 reason =
i18nc(
"Socket error code NotSupported",
274 "operation is not supported");
278 reason =
i18nc(
"Socket error code Timeout",
279 "timed operation timed out");
283 reason =
i18nc(
"Socket error code UnknownError",
284 "an unknown/unexpected error has happened");
288 reason =
i18nc(
"Socket error code RemotelyDisconnected",
289 "remote host closed connection");
315 void KSocketBase::unsetSocketDevice()
342 if ( mode != QIODevice::NotOpen )
455 #include "k3socketbase.moc"
This file is part of the KDE documentation.
Documentation copyright © 1996-2013 The KDE developers.
Generated on Sun Apr 28 2013 14:23:51 by
doxygen 1.8.1.1 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.