Commit 45e305b 1 parent 3dd3fd2 commit 45e305b Copy full SHA for 45e305b
File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ client sip_client;
23
23
24
24
bool received;
25
25
26
- void on_open (websocketpp::connection_hdl hdl) {
26
+ void on_open (client* c, websocketpp::connection_hdl hdl) {
27
27
// now it is safe to use the connection
28
28
std::cout << " connection ready" << std::endl;
29
29
@@ -33,7 +33,7 @@ void on_open(websocketpp::connection_hdl hdl) {
33
33
sip_client.send (hdl, SIP_msg.c_str (), websocketpp::frame::opcode::text);
34
34
}
35
35
36
- void on_message (websocketpp::connection_hdl hdl, message_ptr msg) {
36
+ void on_message (client* c, websocketpp::connection_hdl hdl, message_ptr msg) {
37
37
client::connection_ptr con = sip_client.get_con_from_hdl (hdl);
38
38
39
39
std::cout << " Received a reply:" << std::endl;
@@ -65,7 +65,7 @@ int main(int argc, char* argv[]) {
65
65
client::connection_ptr con = sip_client.get_connection (uri, ec);
66
66
67
67
// Specify the SIP subprotocol:
68
- con. add_subprotocol (" sip" );
68
+ con-> add_subprotocol (" sip" );
69
69
70
70
sip_client.connect (con);
71
71
You can’t perform that action at this time.
0 commit comments