mirror of
https://github.com/lammertb/libhttp.git
synced 2025-09-04 12:42:09 +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
|
||||
*
|
||||
* 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. */
|
||||
CIVETWEB_API int mg_strncasecmp(const char *s1, const char *s2, size_t len);
|
||||
|
||||
|
||||
/* Connect to a websocket as a client
|
||||
Parameters:
|
||||
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,
|
||||
void * user_data);
|
||||
|
||||
|
||||
/* Connect to a TCP server as a client (can be used to connect to a HTTP server)
|
||||
Parameters:
|
||||
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
|
||||
};
|
||||
|
||||
|
||||
/* Wait for a response from the server
|
||||
Parameters:
|
||||
conn: connection
|
||||
|
@@ -1572,6 +1572,7 @@ PRINTF_ARGS(4, 5);
|
||||
static void send_http_error(struct mg_connection *conn, int status,
|
||||
const char *reason, const char *fmt, ...)
|
||||
{
|
||||
/* TODO: remove "reason" argument, since it is always NULL */
|
||||
char buf[MG_BUF_LEN];
|
||||
va_list ap;
|
||||
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
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
|
Reference in New Issue
Block a user