mirror of
https://github.com/cesanta/mongoose.git
synced 2026-11-17 19:30:36 +00:00
Better custom build reference
This commit is contained in:
1 parent
7e053cd632
commit
ebe04620e1
1 file changed
+5
-3
+5
-3
@@ -343,9 +343,11 @@ you have enabled - see previous section. Below is an example:
|
|||||||
#define MG_ENABLE_SOCKET 0 // Disable BSD socket API, implement your own
|
#define MG_ENABLE_SOCKET 0 // Disable BSD socket API, implement your own
|
||||||
```
|
```
|
||||||
|
|
||||||
3. This step is optional. If you have disabled BSD socket API, your build is going
|
3. This step is optional. If you have disabled BSD socket API, your build is
|
||||||
to fail due to several undefined symbols. Create `mongoose_custom.c` and implement
|
going to fail due to several undefined symbols. Create `mongoose_custom.c`
|
||||||
the following functions (take a look at `src/sock.c` for the reference implementation):
|
and implement the following functions (take a look at
|
||||||
|
[test/mongoose_custom.c](https://github.com/cesanta/mongoose/blob/master/test/mongoose_custom.c)
|
||||||
|
for the reference implementation that does nothing):
|
||||||
|
|
||||||
```c
|
```c
|
||||||
void mg_connect_resolved(struct mg_connection *c) {
|
void mg_connect_resolved(struct mg_connection *c) {
|
||||||
|
|||||||
Reference in new issue
Block a user