Changeset 16 in cheroxy for trunk/src/main.cpp
- Timestamp:
- 10/24/12 11:48:13 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/main.cpp
r15 r16 127 127 CRXHttpRequest aHttpRequest; 128 128 CRXHttpResponse aHttpResponse; 129 string aUrl = "";130 string aHost = "";131 int aPort = 0;132 129 133 130 CRXSocket aWebServer; … … 145 142 { 146 143 CRX_PRINT_ERROR (aReceivedSize, "failed to receive from client (" << CRX_ERROR () << ")"); 147 return aRe sult;144 return aReceivedSize; 148 145 } 149 146 … … 158 155 if (aResult < 0) 159 156 { 160 CRX_PRINT_ERROR (aResult, "failed to connect to server <" << aHost << ":" << aPort << "> (" << CRX_ERROR () << ")"); 157 CRX_PRINT_ERROR (aResult, "failed to connect to server (" 158 << CRX_ERROR () 159 << ") <" 160 << aHttpRequest.GetHost () 161 << ":" 162 << aHttpRequest.GetPort () 163 << "><" 164 << aHttpRequest.GetURL () 165 << ">"); 161 166 return aResult; 162 167 } … … 167 172 if (aResult != aReceivedSize) 168 173 { 169 CRX_PRINT_ERROR (aResult, "failed to send to server (" << CRX_ERROR () << ")"); 174 CRX_PRINT_ERROR (aResult, "failed to send to server <" 175 << aHttpRequest.GetHost () 176 << ":" 177 << aHttpRequest.GetPort () 178 << CRX_ERROR () 179 << ")"); 170 180 return aResult; 171 181 } … … 179 189 if (aResult < 0) 180 190 { 181 CRX_PRINT_ERROR (aResult, "failed to receive (" << CRX_ERROR () << ")"); 191 CRX_PRINT_ERROR (aResult, "failed to receive (" 192 << CRX_ERROR () 193 << ") <" 194 << aHttpRequest.GetURL () 195 << ">"); 182 196 break; 183 197 } … … 191 205 if (aResult != aReceivedSize) 192 206 { 193 CRX_PRINT_ERROR (aResult, "failed to send (" << CRX_ERROR () << ")"); 207 CRX_PRINT_ERROR (aResult, "failed to send (" 208 << CRX_ERROR () 209 << ") <" 210 << aHttpRequest.GetURL () 211 << ">"); 194 212 break; 195 213 }
Note:
See TracChangeset
for help on using the changeset viewer.