diff options
author | 2011-08-12 14:27:47 +0000 | |
---|---|---|
committer | 2011-08-12 14:27:47 +0000 | |
commit | ef7bdfac618f60e9edc9f42cd4661d563937e6d8 (patch) | |
tree | 3acb17216c4ede79d0c349182dfaca38e96803a1 /experimental/Networking/SkSockets.cpp | |
parent | 16edff2b1cbd80e36456138f8631711a585205ba (diff) |
Added Debugger to Sample App, off by default
Removed CocoaDebugger from experimental
Slight changes to SkOSMenu
Bug fixes for NetPipeReader and DrawingBoard
git-svn-id: http://skia.googlecode.com/svn/trunk@2102 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'experimental/Networking/SkSockets.cpp')
-rw-r--r-- | experimental/Networking/SkSockets.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/experimental/Networking/SkSockets.cpp b/experimental/Networking/SkSockets.cpp index ccf6010f4d..4304b6cfd6 100644 --- a/experimental/Networking/SkSockets.cpp +++ b/experimental/Networking/SkSockets.cpp @@ -23,6 +23,7 @@ SkSocket::SkSocket() { SkSocket::~SkSocket() { this->closeSocket(fSockfd); + shutdown(fSockfd, 2); //stop sending/receiving } int SkSocket::createSocket() { @@ -49,7 +50,6 @@ void SkSocket::closeSocket(int sockfd) { if (!fReady) return; - shutdown(sockfd, 2); //stop sending/receiving close(sockfd); //SkDebugf("Closed fd:%d\n", sockfd); @@ -151,7 +151,7 @@ int SkSocket::readPacket(void (*onRead)(int, const void*, size_t, DataType, } if (failure) { - onRead(NULL, 0, i, h.type, context); + onRead(i, NULL, 0, h.type, context); this->onFailedConnection(i); continue; } |