1
0
mirror of https://github.com/lammertb/libhttp.git synced 2025-07-31 08:24:23 +03:00

Fixed the copyright, changed mg_client_websocket_connect to mg_websocket_client_connect

This commit is contained in:
Jordan
2014-08-26 15:22:22 -04:00
parent a4eca7c492
commit 5d465aadad
5 changed files with 14 additions and 12 deletions

View File

@ -1,9 +1,10 @@
/*
* Copyright (c) 2013 No Face Press, LLC
* Copyright (c) 2014 Jordan Shelley
* https://github.com/jshelley
* License http://opensource.org/licenses/mit-license.php MIT License
*/
// Simple example program on how to use Embedded C interface.
// Simple example program on how to use websocket client embedded C interface.
#ifdef _WIN32
#include <Windows.h>
#else
@ -38,7 +39,7 @@ int main(int argc, char *argv[])
ctx = mg_start(&callbacks, 0, options);
char ebuf[100];
struct mg_connection* newconn = mg_client_websocket_connect("echo.websocket.org", 443, 1,
struct mg_connection* newconn = mg_websocket_client_connect("echo.websocket.org", 443, 1,
ebuf, sizeof(ebuf),
"/", "http://websocket.org",websocket_data_handler);