equal
deleted
inserted
replaced
112 TSockXfrLength len = 0; |
112 TSockXfrLength len = 0; |
113 do |
113 do |
114 { |
114 { |
115 ATOMICSOCKETOP(iSocket.Send(aBuf.Mid(bytesWritten), 0, tempStatus, len),Complete(tempStatus,KErrBadHandle)) |
115 ATOMICSOCKETOP(iSocket.Send(aBuf.Mid(bytesWritten), 0, tempStatus, len),Complete(tempStatus,KErrBadHandle)) |
116 User::WaitForRequest(tempStatus); |
116 User::WaitForRequest(tempStatus); |
117 if (len() == 0) |
117 if (len() == 0 || tempStatus.Int() == KErrDisconnected ) |
118 { |
118 { |
119 break; |
119 break; |
120 } |
120 } |
121 bytesWritten += len(); |
121 bytesWritten += len(); |
122 } while (bytesWritten < bufLength); |
122 } while (bytesWritten < bufLength); |