Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit bc18b9b

Browse files
committed
updated to the latest oatpp API
1 parent 7dc7a87 commit bc18b9b

File tree

10 files changed

+10
-10
lines changed

10 files changed

+10
-10
lines changed

‎async-server/src/websocket/WSListener.cpp‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ oatpp::async::CoroutineStarter WSListener::onClose(const std::shared_ptr<AsyncWe
2222
return nullptr; // do nothing
2323
}
2424

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

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

‎async-server/src/websocket/WSListener.hpp‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ class WSListener : public oatpp::websocket::AsyncWebSocket::Listener {
3939
/**
4040
* Called on each message frame. After the last message will be called once-again with size == 0 to designate end of the message.
4141
*/
42-
CoroutineStarter readMessage(const std::shared_ptr<AsyncWebSocket>& socket, p_char8 data, oatpp::data::v_io_size size) override;
42+
CoroutineStarter readMessage(const std::shared_ptr<AsyncWebSocket>& socket, v_word8 opcode, p_char8 data, oatpp::data::v_io_size size) override;
4343

4444
};
4545

‎client-binance.com/src/WSListener.cpp‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ void WSListener::onClose(const WebSocket& socket, v_word16 code, const oatpp::St
2020
OATPP_LOGD(TAG, "onClose code=%d", code);
2121
}
2222

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

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

‎client-binance.com/src/WSListener.hpp‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ class WSListener : public oatpp::websocket::WebSocket::Listener {
3939
/**
4040
* Called on each message frame. After the last message will be called once-again with size == 0 to designate end of the message.
4141
*/
42-
void readMessage(const WebSocket& socket, p_char8 data, oatpp::data::v_io_size size) override;
42+
void readMessage(const WebSocket& socket, v_word8 opcode, p_char8 data, oatpp::data::v_io_size size) override;
4343

4444
public:
4545

‎client-mbedtls/src/WSListener.cpp‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ void WSListener::onClose(const WebSocket& socket, v_word16 code, const oatpp::St
2121
OATPP_LOGD(TAG, "onClose code=%d", code);
2222
}
2323

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

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

‎client-mbedtls/src/WSListener.hpp‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ class WSListener : public oatpp::websocket::WebSocket::Listener {
4444
/**
4545
* Called on each message frame. After the last message will be called once-again with size == 0 to designate end of the message.
4646
*/
47-
void readMessage(const WebSocket& socket, p_char8 data, oatpp::data::v_io_size size) override;
47+
void readMessage(const WebSocket& socket, v_word8 opcode, p_char8 data, oatpp::data::v_io_size size) override;
4848

4949
};
5050

‎client/src/WSListener.cpp‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ void WSListener::onClose(const WebSocket& socket, v_word16 code, const oatpp::St
2121
OATPP_LOGD(TAG, "onClose code=%d", code);
2222
}
2323

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

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

‎client/src/WSListener.hpp‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ class WSListener : public oatpp::websocket::WebSocket::Listener {
4444
/**
4545
* Called on each message frame. After the last message will be called once-again with size == 0 to designate end of the message.
4646
*/
47-
void readMessage(const WebSocket& socket, p_char8 data, oatpp::data::v_io_size size) override;
47+
void readMessage(const WebSocket& socket, v_word8 opcode, p_char8 data, oatpp::data::v_io_size size) override;
4848

4949
};
5050

‎server/src/websocket/WSListener.cpp‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ void WSListener::onClose(const WebSocket& socket, v_word16 code, const oatpp::St
2020
OATPP_LOGD(TAG, "onClose code=%d", code);
2121
}
2222

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

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

‎server/src/websocket/WSListener.hpp‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ class WSListener : public oatpp::websocket::WebSocket::Listener {
3939
/**
4040
* Called on each message frame. After the last message will be called once-again with size == 0 to designate end of the message.
4141
*/
42-
void readMessage(const WebSocket& socket, p_char8 data, oatpp::data::v_io_size size) override;
42+
void readMessage(const WebSocket& socket, v_word8 opcode, p_char8 data, oatpp::data::v_io_size size) override;
4343

4444
};
4545

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /