Move signal hack to BNetworkRequest

* This is used to unlock sockets when a read is pending after a close
* It is not needed on requests that don't use a socket.
This commit is contained in:
Adrien Destugues
2014-08-04 16:25:48 +02:00
parent 2f9b187497
commit 89b4e98a8f
6 changed files with 44 additions and 23 deletions
+4
View File
@@ -22,9 +22,13 @@ public:
BUrlContext* context,
const char* threadName,
const char* protocolName);
virtual status_t Stop();
protected:
bool _ResolveHostName(uint16_t port);
void _ProtocolSetup();
status_t _GetLine(BString& destString);
protected:
+1
View File
@@ -48,6 +48,7 @@ public:
protected:
static int32 _ThreadEntry(void* arg);
virtual void _ProtocolSetup() {};
virtual status_t _ProtocolLoop() = 0;
virtual void _EmitDebug(BUrlProtocolDebugMessage type,
const char* format, ...);