mirror of
				https://github.com/Telecominfraproject/wlan-cloud-lib-poco.git
				synced 2025-10-31 02:27:56 +00:00 
			
		
		
		
	fixed two warnings in WebSocket[Impl]
This commit is contained in:
		| @@ -1,7 +1,7 @@ | |||||||
| // | // | ||||||
| // WebSocket.cpp | // WebSocket.cpp | ||||||
| // | // | ||||||
| // $Id: //poco/1.4/Net/src/WebSocket.cpp#3 $ | // $Id: //poco/1.4/Net/src/WebSocket.cpp#4 $ | ||||||
| // | // | ||||||
| // Library: Net | // Library: Net | ||||||
| // Package: WebSocket | // Package: WebSocket | ||||||
| @@ -107,7 +107,7 @@ void WebSocket::shutdown(Poco::UInt16 statusCode, const std::string& statusMessa | |||||||
| 	Poco::BinaryWriter writer(ostr, Poco::BinaryWriter::NETWORK_BYTE_ORDER); | 	Poco::BinaryWriter writer(ostr, Poco::BinaryWriter::NETWORK_BYTE_ORDER); | ||||||
| 	writer << statusCode; | 	writer << statusCode; | ||||||
| 	writer.writeRaw(statusMessage); | 	writer.writeRaw(statusMessage); | ||||||
| 	sendFrame(buffer.begin(), ostr.charsWritten(), FRAME_FLAG_FIN | FRAME_OP_CLOSE); | 	sendFrame(buffer.begin(), static_cast<int>(ostr.charsWritten()), FRAME_FLAG_FIN | FRAME_OP_CLOSE); | ||||||
| } | } | ||||||
|  |  | ||||||
|  |  | ||||||
|   | |||||||
| @@ -1,7 +1,7 @@ | |||||||
| // | // | ||||||
| // WebSocketImpl.cpp | // WebSocketImpl.cpp | ||||||
| // | // | ||||||
| // $Id: //poco/1.4/Net/src/WebSocketImpl.cpp#1 $ | // $Id: //poco/1.4/Net/src/WebSocketImpl.cpp#2 $ | ||||||
| // | // | ||||||
| // Library: Net | // Library: Net | ||||||
| // Package: WebSocket | // Package: WebSocket | ||||||
| @@ -110,7 +110,7 @@ int WebSocketImpl::sendBytes(const void* buffer, int length, int flags) | |||||||
| 	{ | 	{ | ||||||
| 		std::memcpy(frame.begin() + ostr.charsWritten(), buffer, length); | 		std::memcpy(frame.begin() + ostr.charsWritten(), buffer, length); | ||||||
| 	} | 	} | ||||||
| 	_pStreamSocketImpl->sendBytes(frame.begin(), length + ostr.charsWritten()); | 	_pStreamSocketImpl->sendBytes(frame.begin(), length + static_cast<int>(ostr.charsWritten())); | ||||||
| 	return length; | 	return length; | ||||||
| } | } | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Guenter Obiltschnig
					Guenter Obiltschnig