intro.md 1.31 KB
Newer Older
1
---
2
title: "Core API: TCP/UDP/SSL"
3 4
symbol_kind: "intro"
decl_name: "net.h"
5
items:
6 7 8 9
  - { name: mg_add_sock.md }
  - { name: mg_add_sock_opt.md }
  - { name: mg_bind.md }
  - { name: mg_bind_opt.md }
10 11
  - { name: mg_broadcast.md }
  - { name: mg_check_ip_acl.md }
12 13
  - { name: mg_connect.md }
  - { name: mg_connect_opt.md }
14 15 16 17 18 19
  - { name: mg_enable_javascript.md }
  - { name: mg_enable_multithreading.md }
  - { name: mg_mgr_free.md }
  - { name: mg_mgr_init.md }
  - { name: mg_mgr_poll.md }
  - { name: mg_next.md }
20
  - { name: mg_printf.md }
21
  - { name: mg_resolve.md }
22 23
  - { name: mg_send.md }
  - { name: mg_set_ssl.md }
24
  - { name: mg_set_timer.md }
25
  - { name: mg_socketpair.md }
26
  - { name: mg_time.md }
27
  - { name: mg_vprintf.md }
28 29 30 31
  - { name: mg_event_handler_t.md }
  - { name: struct_mg_add_sock_opts.md }
  - { name: struct_mg_bind_opts.md }
  - { name: struct_mg_connect_opts.md }
32 33
  - { name: struct_mg_connection.md }
  - { name: struct_mg_mgr.md }
34
  - { name: struct_mg_multithreading_opts.md }
35 36 37 38
---

NOTE: Mongoose manager is single threaded. It does not protect
its data structures by mutexes, therefore all functions that are dealing
39 40
with a particular event manager should be called from the same thread,
with exception of the `mg_broadcast()` function. It is fine to have different
41 42
event managers handled by different threads.