Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
M
mongoose
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
esp
mongoose
Commits
4e551d9a
Commit
4e551d9a
authored
Aug 26, 2011
by
Sergey Lyubka
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Copyright year changed to 2011. Fixed documentation string for mg_get_cookie()
parent
5edfe797
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
6 deletions
+6
-6
main.c
main.c
+1
-1
mongoose.c
mongoose.c
+1
-1
mongoose.h
mongoose.h
+4
-4
No files found.
main.c
View file @
4e551d9a
// Copyright (c) 2004-20
09
Sergey Lyubka
// Copyright (c) 2004-20
11
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
// of this software and associated documentation files (the "Software"), to deal
// of this software and associated documentation files (the "Software"), to deal
...
...
mongoose.c
View file @
4e551d9a
// Copyright (c) 2004-201
0
Sergey Lyubka
// Copyright (c) 2004-201
1
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
// of this software and associated documentation files (the "Software"), to deal
// of this software and associated documentation files (the "Software"), to deal
...
...
mongoose.h
View file @
4e551d9a
// Copyright (c) 2004-201
0
Sergey Lyubka
// Copyright (c) 2004-201
1
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
// of this software and associated documentation files (the "Software"), to deal
// of this software and associated documentation files (the "Software"), to deal
...
@@ -196,7 +196,7 @@ const char *mg_get_header(const struct mg_connection *, const char *name);
...
@@ -196,7 +196,7 @@ const char *mg_get_header(const struct mg_connection *, const char *name);
// Destination buffer is guaranteed to be '\0' - terminated. In case of
// Destination buffer is guaranteed to be '\0' - terminated. In case of
// failure, dst[0] == '\0'.
// failure, dst[0] == '\0'.
int
mg_get_var
(
const
char
*
data
,
size_t
data_len
,
int
mg_get_var
(
const
char
*
data
,
size_t
data_len
,
const
char
*
var_name
,
char
*
buf
,
size_t
buf_len
);
const
char
*
var_name
,
char
*
buf
,
size_t
buf_len
);
// Fetch value of certain cookie variable into the destination buffer.
// Fetch value of certain cookie variable into the destination buffer.
//
//
...
@@ -206,11 +206,11 @@ int mg_get_var(const char *data, size_t data_len,
...
@@ -206,11 +206,11 @@ int mg_get_var(const char *data, size_t data_len,
//
//
// Return:
// Return:
// On success, value length.
// On success, value length.
// On error,
-1
(either "Cookie:" header is not present at all, or the
// On error,
0
(either "Cookie:" header is not present at all, or the
// requested parameter is not found, or destination buffer is too small
// requested parameter is not found, or destination buffer is too small
// to hold the value).
// to hold the value).
int
mg_get_cookie
(
const
struct
mg_connection
*
,
int
mg_get_cookie
(
const
struct
mg_connection
*
,
const
char
*
cookie_name
,
char
*
buf
,
size_t
buf_len
);
const
char
*
cookie_name
,
char
*
buf
,
size_t
buf_len
);
// Return Mongoose version.
// Return Mongoose version.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment