Changeset 667
- Timestamp:
- 10/06/11 18:20:35 (8 months ago)
- Location:
- trunk/sources
- Files:
-
- 13 edited
-
androidapplestreaming/src/variantconnection.cpp (modified) (1 diff)
-
thelib/include/netio/epoll/tcpconnector.h (modified) (2 diffs)
-
thelib/include/netio/kqueue/tcpconnector.h (modified) (2 diffs)
-
thelib/include/netio/select/tcpconnector.h (modified) (1 diff)
-
thelib/src/netio/epoll/tcpacceptor.cpp (modified) (3 diffs)
-
thelib/src/netio/epoll/tcpcarrier.cpp (modified) (1 diff)
-
thelib/src/netio/epoll/udpcarrier.cpp (modified) (4 diffs)
-
thelib/src/netio/kqueue/tcpacceptor.cpp (modified) (3 diffs)
-
thelib/src/netio/kqueue/tcpcarrier.cpp (modified) (1 diff)
-
thelib/src/netio/kqueue/udpcarrier.cpp (modified) (4 diffs)
-
thelib/src/netio/select/tcpacceptor.cpp (modified) (1 diff)
-
thelib/src/netio/select/udpcarrier.cpp (modified) (3 diffs)
-
thelib/src/protocols/rtp/connectivity/outboundconnectivity.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/androidapplestreaming/src/variantconnection.cpp
r168 r667 93 93 void VariantConnection::Close() { 94 94 if (_fd > 0) { 95 close(_fd);95 CLOSE_SOCKET(_fd); 96 96 _fd = 0; 97 97 } -
trunk/sources/thelib/include/netio/epoll/tcpconnector.h
r637 r667 56 56 } 57 57 if (_closeSocket) { 58 close(_inboundFd);58 CLOSE_SOCKET(_inboundFd); 59 59 } 60 60 } … … 113 113 114 114 if (!setFdOptions(fd)) { 115 CLOSE_SOCKET(fd); 115 116 T::SignalProtocolCreated(NULL, customParameters); 116 117 FATAL("Unable to set socket options"); -
trunk/sources/thelib/include/netio/kqueue/tcpconnector.h
r637 r667 57 57 } 58 58 if (_closeSocket) { 59 close(_inboundFd);59 CLOSE_SOCKET(_inboundFd); 60 60 } 61 61 } … … 114 114 115 115 if (!setFdOptions(fd)) { 116 CLOSE_SOCKET(fd); 116 117 T::SignalProtocolCreated(NULL, customParameters); 117 118 FATAL("Unable to set socket options"); -
trunk/sources/thelib/include/netio/select/tcpconnector.h
r637 r667 107 107 108 108 if (!setFdOptions(fd)) { 109 CLOSE_SOCKET(fd); 109 110 T::SignalProtocolCreated(NULL, customParameters); 110 111 FATAL("Unable to set socket options"); -
trunk/sources/thelib/src/netio/epoll/tcpacceptor.cpp
r637 r667 51 51 52 52 TCPAcceptor::~TCPAcceptor() { 53 close(_inboundFd);53 CLOSE_SOCKET(_inboundFd); 54 54 } 55 55 … … 156 156 if (!setFdOptions(fd)) { 157 157 FATAL("Unable to set socket options"); 158 CLOSE_SOCKET(fd); 158 159 return false; 159 160 } … … 163 164 if (pProtocol == NULL) { 164 165 FATAL("Unable to create protocol chain"); 165 close(fd);166 CLOSE_SOCKET(fd); 166 167 return false; 167 168 } -
trunk/sources/thelib/src/netio/epoll/tcpcarrier.cpp
r637 r667 62 62 63 63 TCPCarrier::~TCPCarrier() { 64 close(_inboundFd);64 CLOSE_SOCKET(_inboundFd); 65 65 } 66 66 -
trunk/sources/thelib/src/netio/epoll/udpcarrier.cpp
r642 r667 38 38 39 39 UDPCarrier::~UDPCarrier() { 40 close(_inboundFd);40 CLOSE_SOCKET(_inboundFd); 41 41 } 42 42 … … 164 164 if (bindAddress.sin_addr.s_addr == INADDR_NONE) { 165 165 FATAL("Unable to bind on address %s:%hu", STR(bindIp), bindPort); 166 close(sock);166 CLOSE_SOCKET(sock); 167 167 return NULL; 168 168 } … … 190 190 FATAL("Unable to bind on address: udp://%s:%"PRIu16"; Error was: %s (%"PRId32")", 191 191 STR(bindIp), bindPort, strerror(error), error); 192 close(sock);192 CLOSE_SOCKET(sock); 193 193 return NULL; 194 194 } … … 199 199 if (setsockopt(sock, IPPROTO_IP, IP_ADD_MEMBERSHIP, (char *) &group, sizeof (group)) < 0) { 200 200 FATAL("Adding multicast group error"); 201 close(sock);201 CLOSE_SOCKET(sock); 202 202 return NULL; 203 203 } -
trunk/sources/thelib/src/netio/kqueue/tcpacceptor.cpp
r637 r667 48 48 49 49 TCPAcceptor::~TCPAcceptor() { 50 close(_inboundFd);50 CLOSE_SOCKET(_inboundFd); 51 51 } 52 52 … … 150 150 if (!setFdOptions(fd)) { 151 151 FATAL("Unable to set socket options"); 152 CLOSE_SOCKET(fd); 152 153 return false; 153 154 } … … 158 159 if (pProtocol == NULL) { 159 160 FATAL("Unable to create protocol chain"); 160 close(fd);161 CLOSE_SOCKET(fd); 161 162 return false; 162 163 } -
trunk/sources/thelib/src/netio/kqueue/tcpcarrier.cpp
r637 r667 60 60 61 61 TCPCarrier::~TCPCarrier() { 62 close(_inboundFd);62 CLOSE_SOCKET(_inboundFd); 63 63 } 64 64 -
trunk/sources/thelib/src/netio/kqueue/udpcarrier.cpp
r642 r667 36 36 37 37 UDPCarrier::~UDPCarrier() { 38 close(_inboundFd);38 CLOSE_SOCKET(_inboundFd); 39 39 } 40 40 … … 159 159 if (bindAddress.sin_addr.s_addr == INADDR_NONE) { 160 160 FATAL("Unable to bind on address %s:%hu", STR(bindIp), bindPort); 161 close(sock);161 CLOSE_SOCKET(sock); 162 162 return NULL; 163 163 } … … 185 185 FATAL("Unable to bind on address: udp://%s:%"PRIu16"; Error was: %s (%"PRId32")", 186 186 STR(bindIp), bindPort, strerror(error), error); 187 close(sock);187 CLOSE_SOCKET(sock); 188 188 return NULL; 189 189 } … … 194 194 if (setsockopt(sock, IPPROTO_IP, IP_ADD_MEMBERSHIP, (char *) &group, sizeof (group)) < 0) { 195 195 FATAL("Adding multicast group error"); 196 close(sock);196 CLOSE_SOCKET(sock); 197 197 return NULL; 198 198 } -
trunk/sources/thelib/src/netio/select/tcpacceptor.cpp
r637 r667 151 151 if (!setFdOptions(fd)) { 152 152 FATAL("Unable to set socket options"); 153 CLOSE_SOCKET(fd); 153 154 return false; 154 155 } -
trunk/sources/thelib/src/netio/select/udpcarrier.cpp
r642 r667 160 160 if (bindAddress.sin_addr.s_addr == INADDR_NONE) { 161 161 FATAL("Unable to bind on address %s:%hu", STR(bindIp), bindPort); 162 close(sock);162 CLOSE_SOCKET(sock); 163 163 return NULL; 164 164 } … … 186 186 FATAL("Unable to bind on address: udp://%s:%"PRIu16"; Error was: %s (%"PRId32")", 187 187 STR(bindIp), bindPort, strerror(error), error); 188 close(sock);188 CLOSE_SOCKET(sock); 189 189 return NULL; 190 190 } … … 195 195 if (setsockopt(sock, IPPROTO_IP, IP_ADD_MEMBERSHIP, (char *) &group, sizeof (group)) < 0) { 196 196 FATAL("Adding multicast group error"); 197 close(sock);197 CLOSE_SOCKET(sock); 198 198 return NULL; 199 199 } -
trunk/sources/thelib/src/protocols/rtp/connectivity/outboundconnectivity.cpp
r584 r667 70 70 } 71 71 CLOSE_SOCKET(_videoDataFd); 72 CLOSE_SOCKET(_videoRTCPPort); 72 73 CLOSE_SOCKET(_audioDataFd); 74 CLOSE_SOCKET(_audioRTCPPort); 73 75 } 74 76
Note: See TracChangeset
for help on using the changeset viewer.
