mirror of
https://github.com/lammertb/libhttp.git
synced 2025-09-05 23:44:00 +03:00
Update copyright note to 2015
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
/* Copyright (c) 2013-2014 the Civetweb developers
|
/* Copyright (c) 2013-2015 the Civetweb developers
|
||||||
* Copyright (c) 2004-2013 Sergey Lyubka
|
* Copyright (c) 2004-2013 Sergey Lyubka
|
||||||
*
|
*
|
||||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
@@ -591,6 +591,7 @@ CIVETWEB_API void mg_cry(struct mg_connection *conn,
|
|||||||
/* utility method to compare two buffers, case incensitive. */
|
/* utility method to compare two buffers, case incensitive. */
|
||||||
CIVETWEB_API int mg_strncasecmp(const char *s1, const char *s2, size_t len);
|
CIVETWEB_API int mg_strncasecmp(const char *s1, const char *s2, size_t len);
|
||||||
|
|
||||||
|
|
||||||
/* Connect to a websocket as a client
|
/* Connect to a websocket as a client
|
||||||
Parameters:
|
Parameters:
|
||||||
host: host to connect to, i.e. "echo.websocket.org" or "192.168.1.1" or "localhost"
|
host: host to connect to, i.e. "echo.websocket.org" or "192.168.1.1" or "localhost"
|
||||||
@@ -618,6 +619,7 @@ CIVETWEB_API struct mg_connection *mg_connect_websocket_client(const char *host,
|
|||||||
websocket_data_func data_func, websocket_close_func close_func,
|
websocket_data_func data_func, websocket_close_func close_func,
|
||||||
void * user_data);
|
void * user_data);
|
||||||
|
|
||||||
|
|
||||||
/* Connect to a TCP server as a client (can be used to connect to a HTTP server)
|
/* Connect to a TCP server as a client (can be used to connect to a HTTP server)
|
||||||
Parameters:
|
Parameters:
|
||||||
host: host to connect to, i.e. "www.wikipedia.org" or "192.168.1.1" or "localhost"
|
host: host to connect to, i.e. "www.wikipedia.org" or "192.168.1.1" or "localhost"
|
||||||
@@ -637,6 +639,7 @@ enum {
|
|||||||
TIMEOUT_INFINITE = -1
|
TIMEOUT_INFINITE = -1
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
/* Wait for a response from the server
|
/* Wait for a response from the server
|
||||||
Parameters:
|
Parameters:
|
||||||
conn: connection
|
conn: connection
|
||||||
|
@@ -1572,6 +1572,7 @@ PRINTF_ARGS(4, 5);
|
|||||||
static void send_http_error(struct mg_connection *conn, int status,
|
static void send_http_error(struct mg_connection *conn, int status,
|
||||||
const char *reason, const char *fmt, ...)
|
const char *reason, const char *fmt, ...)
|
||||||
{
|
{
|
||||||
|
/* TODO: remove "reason" argument, since it is always NULL */
|
||||||
char buf[MG_BUF_LEN];
|
char buf[MG_BUF_LEN];
|
||||||
va_list ap;
|
va_list ap;
|
||||||
int len = 0, i, page_handler_found, scope;
|
int len = 0, i, page_handler_found, scope;
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
/* Copyright (c) 2013-2014 the Civetweb developers
|
/* Copyright (c) 2013-2015 the Civetweb developers
|
||||||
* Copyright (c) 2004-2013 Sergey Lyubka
|
* Copyright (c) 2004-2013 Sergey Lyubka
|
||||||
*
|
*
|
||||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
|
Reference in New Issue
Block a user