зеркало из https://github.com/mozilla/gecko-dev.git
Bug 804436 - Patch 1 : Add listening status to UnixSocket, r=gyeh
This commit is contained in:
Родитель
ba1066f7be
Коммит
bc0b8dce42
|
@ -778,7 +778,7 @@ UnixSocketConsumer::ListenSocket(UnixSocketConnector* aConnector)
|
|||
mImpl = new UnixSocketImpl(this, aConnector, addr);
|
||||
XRE_GetIOMessageLoop()->PostTask(FROM_HERE,
|
||||
new SocketAcceptTask(mImpl));
|
||||
mConnectionStatus = SOCKET_CONNECTING;
|
||||
mConnectionStatus = SOCKET_LISTENING;
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
|
@ -116,8 +116,9 @@ public:
|
|||
|
||||
enum SocketConnectionStatus {
|
||||
SOCKET_DISCONNECTED = 0,
|
||||
SOCKET_CONNECTING = 1,
|
||||
SOCKET_CONNECTED = 2
|
||||
SOCKET_LISTENING = 1,
|
||||
SOCKET_CONNECTING = 2,
|
||||
SOCKET_CONNECTED = 3
|
||||
};
|
||||
|
||||
class UnixSocketConsumer : public RefCounted<UnixSocketConsumer>
|
||||
|
|
Загрузка…
Ссылка в новой задаче