Skip to content

Commit

Permalink
Increase oatpp version to 0.19.12
Browse files Browse the repository at this point in the history
  • Loading branch information
lganzzzo committed Jan 11, 2020
1 parent 2cd5cf9 commit 3bedb5e
Show file tree
Hide file tree
Showing 18 changed files with 32 additions and 32 deletions.
4 changes: 2 additions & 2 deletions async-server-rooms/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ add_library(${project_name}-lib

## link libs

find_package(oatpp 0.19.11 REQUIRED)
find_package(oatpp-websocket 0.19.11 REQUIRED)
find_package(oatpp 0.19.12 REQUIRED)
find_package(oatpp-websocket 0.19.12 REQUIRED)

target_link_libraries(${project_name}-lib
PUBLIC oatpp::oatpp
Expand Down
4 changes: 2 additions & 2 deletions async-server-rooms/src/rooms/Peer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ oatpp::async::CoroutineStarter Peer::onClose(const std::shared_ptr<AsyncWebSocke
return nullptr; // do nothing
}

oatpp::async::CoroutineStarter Peer::readMessage(const std::shared_ptr<AsyncWebSocket>& socket, v_word8 opcode, p_char8 data, oatpp::data::v_io_size size) {
oatpp::async::CoroutineStarter Peer::readMessage(const std::shared_ptr<AsyncWebSocket>& socket, v_word8 opcode, p_char8 data, oatpp::v_io_size size) {

if(size == 0) { // message transfer finished

Expand All @@ -63,7 +63,7 @@ oatpp::async::CoroutineStarter Peer::readMessage(const std::shared_ptr<AsyncWebS
m_room->sendMessage(m_nickname + ": " + wholeMessage);

} else if(size > 0) { // message frame received
m_messageBuffer.write(data, size);
m_messageBuffer.writeSimple(data, size);
}

return nullptr; // do nothing
Expand Down
2 changes: 1 addition & 1 deletion async-server-rooms/src/rooms/Peer.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ class Peer : public oatpp::websocket::AsyncWebSocket::Listener {
CoroutineStarter onPing(const std::shared_ptr<AsyncWebSocket>& socket, const oatpp::String& message) override;
CoroutineStarter onPong(const std::shared_ptr<AsyncWebSocket>& socket, const oatpp::String& message) override;
CoroutineStarter onClose(const std::shared_ptr<AsyncWebSocket>& socket, v_word16 code, const oatpp::String& message) override;
CoroutineStarter readMessage(const std::shared_ptr<AsyncWebSocket>& socket, v_word8 opcode, p_char8 data, oatpp::data::v_io_size size) override;
CoroutineStarter readMessage(const std::shared_ptr<AsyncWebSocket>& socket, v_word8 opcode, p_char8 data, oatpp::v_io_size size) override;

};

Expand Down
4 changes: 2 additions & 2 deletions async-server/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ add_library(${project_name}-lib

## link libs

find_package(oatpp 0.19.11 REQUIRED)
find_package(oatpp-websocket 0.19.11 REQUIRED)
find_package(oatpp 0.19.12 REQUIRED)
find_package(oatpp-websocket 0.19.12 REQUIRED)

target_link_libraries(${project_name}-lib
PUBLIC oatpp::oatpp
Expand Down
4 changes: 2 additions & 2 deletions async-server/src/websocket/WSListener.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ oatpp::async::CoroutineStarter WSListener::onClose(const std::shared_ptr<AsyncWe
return nullptr; // do nothing
}

oatpp::async::CoroutineStarter WSListener::readMessage(const std::shared_ptr<AsyncWebSocket>& socket, v_word8 opcode, p_char8 data, oatpp::data::v_io_size size) {
oatpp::async::CoroutineStarter WSListener::readMessage(const std::shared_ptr<AsyncWebSocket>& socket, v_word8 opcode, p_char8 data, oatpp::v_io_size size) {

if(size == 0) { // message transfer finished

Expand All @@ -35,7 +35,7 @@ oatpp::async::CoroutineStarter WSListener::readMessage(const std::shared_ptr<Asy
return socket->sendOneFrameTextAsync( "Hello from oatpp!: " + wholeMessage);

} else if(size > 0) { // message frame received
m_messageBuffer.write(data, size);
m_messageBuffer.writeSimple(data, size);
}

return nullptr; // do nothing
Expand Down
2 changes: 1 addition & 1 deletion async-server/src/websocket/WSListener.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ class WSListener : public oatpp::websocket::AsyncWebSocket::Listener {
/**
* Called on each message frame. After the last message will be called once-again with size == 0 to designate end of the message.
*/
CoroutineStarter readMessage(const std::shared_ptr<AsyncWebSocket>& socket, v_word8 opcode, p_char8 data, oatpp::data::v_io_size size) override;
CoroutineStarter readMessage(const std::shared_ptr<AsyncWebSocket>& socket, v_word8 opcode, p_char8 data, oatpp::v_io_size size) override;

};

Expand Down
6 changes: 3 additions & 3 deletions client-binance.com/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ add_library(${project_name}-lib

## link libs

find_package(oatpp 0.19.11 REQUIRED)
find_package(oatpp-websocket 0.19.11 REQUIRED)
find_package(oatpp-mbedtls 0.19.11 REQUIRED)
find_package(oatpp 0.19.12 REQUIRED)
find_package(oatpp-websocket 0.19.12 REQUIRED)
find_package(oatpp-mbedtls 0.19.12 REQUIRED)

target_link_libraries(${project_name}-lib
PUBLIC oatpp::oatpp
Expand Down
4 changes: 2 additions & 2 deletions client-binance.com/src/WSListener.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ void WSListener::onClose(const WebSocket& socket, v_word16 code, const oatpp::St
OATPP_LOGD(TAG, "onClose code=%d", code);
}

void WSListener::readMessage(const WebSocket& socket, v_word8 opcode, p_char8 data, oatpp::data::v_io_size size) {
void WSListener::readMessage(const WebSocket& socket, v_word8 opcode, p_char8 data, oatpp::v_io_size size) {

if(size == 0) { // message transfer finished

Expand All @@ -29,7 +29,7 @@ void WSListener::readMessage(const WebSocket& socket, v_word8 opcode, p_char8 da
onCompleteMessage(wholeMessage);

} else if(size > 0) { // message frame received
m_messageBuffer.write(data, size);
m_messageBuffer.writeSimple(data, size);
}

}
2 changes: 1 addition & 1 deletion client-binance.com/src/WSListener.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ class WSListener : public oatpp::websocket::WebSocket::Listener {
/**
* Called on each message frame. After the last message will be called once-again with size == 0 to designate end of the message.
*/
void readMessage(const WebSocket& socket, v_word8 opcode, p_char8 data, oatpp::data::v_io_size size) override;
void readMessage(const WebSocket& socket, v_word8 opcode, p_char8 data, oatpp::v_io_size size) override;

public:

Expand Down
6 changes: 3 additions & 3 deletions client-mbedtls/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ add_library(${project_name}-lib

## link libs

find_package(oatpp 0.19.11 REQUIRED)
find_package(oatpp-websocket 0.19.11 REQUIRED)
find_package(oatpp-mbedtls 0.19.11 REQUIRED)
find_package(oatpp 0.19.12 REQUIRED)
find_package(oatpp-websocket 0.19.12 REQUIRED)
find_package(oatpp-mbedtls 0.19.12 REQUIRED)

target_link_libraries(${project_name}-lib
PUBLIC oatpp::oatpp
Expand Down
4 changes: 2 additions & 2 deletions client-mbedtls/src/WSListener.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ void WSListener::onClose(const WebSocket& socket, v_word16 code, const oatpp::St
OATPP_LOGD(TAG, "onClose code=%d", code);
}

void WSListener::readMessage(const WebSocket& socket, v_word8 opcode, p_char8 data, oatpp::data::v_io_size size) {
void WSListener::readMessage(const WebSocket& socket, v_word8 opcode, p_char8 data, oatpp::v_io_size size) {

if(size == 0) { // message transfer finished

Expand All @@ -35,7 +35,7 @@ void WSListener::readMessage(const WebSocket& socket, v_word8 opcode, p_char8 da
//socket.sendOneFrameText( "Hello from oatpp!: " + wholeMessage);

} else if(size > 0) { // message frame received
m_messageBuffer.write(data, size);
m_messageBuffer.writeSimple(data, size);
}

}
2 changes: 1 addition & 1 deletion client-mbedtls/src/WSListener.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ class WSListener : public oatpp::websocket::WebSocket::Listener {
/**
* Called on each message frame. After the last message will be called once-again with size == 0 to designate end of the message.
*/
void readMessage(const WebSocket& socket, v_word8 opcode, p_char8 data, oatpp::data::v_io_size size) override;
void readMessage(const WebSocket& socket, v_word8 opcode, p_char8 data, oatpp::v_io_size size) override;

};

Expand Down
4 changes: 2 additions & 2 deletions client/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ add_library(${project_name}-lib

## link libs

find_package(oatpp 0.19.11 REQUIRED)
find_package(oatpp-websocket 0.19.11 REQUIRED)
find_package(oatpp 0.19.12 REQUIRED)
find_package(oatpp-websocket 0.19.12 REQUIRED)

target_link_libraries(${project_name}-lib
PUBLIC oatpp::oatpp
Expand Down
4 changes: 2 additions & 2 deletions client/src/WSListener.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ void WSListener::onClose(const WebSocket& socket, v_word16 code, const oatpp::St
OATPP_LOGD(TAG, "onClose code=%d", code);
}

void WSListener::readMessage(const WebSocket& socket, v_word8 opcode, p_char8 data, oatpp::data::v_io_size size) {
void WSListener::readMessage(const WebSocket& socket, v_word8 opcode, p_char8 data, oatpp::v_io_size size) {

if(size == 0) { // message transfer finished

Expand All @@ -35,7 +35,7 @@ void WSListener::readMessage(const WebSocket& socket, v_word8 opcode, p_char8 da
//socket.sendOneFrameText( "Hello from oatpp!: " + wholeMessage);

} else if(size > 0) { // message frame received
m_messageBuffer.write(data, size);
m_messageBuffer.writeSimple(data, size);
}

}
2 changes: 1 addition & 1 deletion client/src/WSListener.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ class WSListener : public oatpp::websocket::WebSocket::Listener {
/**
* Called on each message frame. After the last message will be called once-again with size == 0 to designate end of the message.
*/
void readMessage(const WebSocket& socket, v_word8 opcode, p_char8 data, oatpp::data::v_io_size size) override;
void readMessage(const WebSocket& socket, v_word8 opcode, p_char8 data, oatpp::v_io_size size) override;

};

Expand Down
4 changes: 2 additions & 2 deletions server/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ add_library(${project_name}-lib

## link libs

find_package(oatpp 0.19.11 REQUIRED)
find_package(oatpp-websocket 0.19.11 REQUIRED)
find_package(oatpp 0.19.12 REQUIRED)
find_package(oatpp-websocket 0.19.12 REQUIRED)

target_link_libraries(${project_name}-lib
PUBLIC oatpp::oatpp
Expand Down
4 changes: 2 additions & 2 deletions server/src/websocket/WSListener.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ void WSListener::onClose(const WebSocket& socket, v_word16 code, const oatpp::St
OATPP_LOGD(TAG, "onClose code=%d", code);
}

void WSListener::readMessage(const WebSocket& socket, v_word8 opcode, p_char8 data, oatpp::data::v_io_size size) {
void WSListener::readMessage(const WebSocket& socket, v_word8 opcode, p_char8 data, oatpp::v_io_size size) {

if(size == 0) { // message transfer finished

Expand All @@ -33,7 +33,7 @@ void WSListener::readMessage(const WebSocket& socket, v_word8 opcode, p_char8 da
socket.sendOneFrameText( "Hello from oatpp!: " + wholeMessage);

} else if(size > 0) { // message frame received
m_messageBuffer.write(data, size);
m_messageBuffer.writeSimple(data, size);
}

}
Expand Down
2 changes: 1 addition & 1 deletion server/src/websocket/WSListener.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ class WSListener : public oatpp::websocket::WebSocket::Listener {
/**
* Called on each message frame. After the last message will be called once-again with size == 0 to designate end of the message.
*/
void readMessage(const WebSocket& socket, v_word8 opcode, p_char8 data, oatpp::data::v_io_size size) override;
void readMessage(const WebSocket& socket, v_word8 opcode, p_char8 data, oatpp::v_io_size size) override;

};

Expand Down

0 comments on commit 3bedb5e

Please sign in to comment.