Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/boazsegev/iodine
/ functions
Functions
1,281 in github.com/boazsegev/iodine
⨍
Functions
1,281
◇
Types & classes
139
Function
iodine_io_thread
ext/iodine/iodine_defer.c:35
Function
iodine_json_parse
Parse a JSON string using the iodine lenient parser (it's also faster). */
ext/iodine/iodine_json.c:217
Function
iodine_json_parse_bang
Parse a JSON string using the iodine lenient parser with a default Symbol rather than String key (this is often faster than the regular {Iodine::JSON.
ext/iodine/iodine_json.c:238
Function
iodine_leaveGVL
Calls a C function outside the GVL. */
ext/iodine/iodine_caller.c:125
Function
iodine_listen
clang-format off {Iodine.listen} can be used to listen to any incoming connections, including HTTP and raw (tcp/ip and unix sockets) connections.
ext/iodine/iodine.c:1122
Function
iodine_logging_get
* Gets the logging level used for Iodine messages. * * Levels range from 0-5, where: * * 0 == Quite (no messages) * 1 == Fatal Errors only. * 2
ext/iodine/iodine.c:169
Function
iodine_logging_set
* Gets the logging level used for Iodine messages. * * Levels range from 0-5, where: * * 0 == Quite (no messages) * 1 == Fatal Errors only. * 2
ext/iodine/iodine.c:192
Function
iodine_master_is
* Returns `true` if this process is the master / root process, `false` * otherwise. * * Note that the master process might be a worker process as w
ext/iodine/iodine.c:306
Function
iodine_mustache_data_alloc_c
Iodine::PubSub::Engine.allocate */
ext/iodine/iodine_mustache.c:49
Function
iodine_mustache_data_free
ext/iodine/iodine_mustache.c:28
Function
iodine_mustache_data_size
ext/iodine/iodine_mustache.c:18
Function
iodine_mustache_new
Loads the mustache template found in `:filename`. If `:template` is provided it will be used instead of reading the file's content. Iodine::Musta
ext/iodine/iodine_mustache.c:283
Function
iodine_mustache_render
Renders the mustache template using the data provided in the `data` argument. Returns a String with the rendered template. Raises an exception on er
ext/iodine/iodine_mustache.c:390
Function
iodine_mustache_render_klass
Renders the mustache template found in `filename`, using the data provided in the `data` argument. If `template` is provided it will be used instead o
ext/iodine/iodine_mustache.c:447
Function
iodine_on_pubsub
callback for incoming subscription messages */
ext/iodine/iodine_connection.c:416
Function
iodine_on_pubsub_call_block
calls the Ruby block assigned to a pubsub event (within the GVL). */
ext/iodine/iodine_connection.c:402
Function
iodine_on_state
clang-format off Sets a block of code to run when Iodine's core state is updated. @param [Symbol] event the state event for which the block should ru
ext/iodine/iodine_defer.c:326
Function
iodine_on_unsubscribe
callback for subscription closure */
ext/iodine/iodine_connection.c:472
Function
iodine_perform_on_idle_callback
performs a Ruby state callback and clears the Ruby object's memory */
ext/iodine/iodine.c:64
Function
iodine_perform_state_callback_persist
performs a Ruby state callback without clearing the Ruby object's memory */
ext/iodine/iodine_defer.c:297
Function
iodine_protect_ruby_call
wrap the function call in exception handling block (uses longjmp) */
ext/iodine/iodine_caller.c:91
Function
iodine_pubsub_GIL_publish
calls an engine's `unsubscribe` callback within the GVL */
ext/iodine/iodine_pubsub.c:101
Function
iodine_pubsub_GIL_subscribe
calls an engine's `subscribe` callback within the GVL */
ext/iodine/iodine_pubsub.c:57
Function
iodine_pubsub_GIL_unsubscribe
calls an engine's `unsubscribe` callback within the GVL */
ext/iodine/iodine_pubsub.c:79
Function
iodine_pubsub_attach
* Attaches an {Iodine::PubSub::Engine} to the pub/sub system (more than a * single engine can be attached at the same time). * * After an engine wa
ext/iodine/iodine_pubsub.c:280
Function
iodine_pubsub_data_alloc_c
Iodine::PubSub::Engine.allocate */
ext/iodine/iodine_pubsub.c:212
Function
iodine_pubsub_data_free
a callback for the GC (marking active objects) */
ext/iodine/iodine_pubsub.c:183
Function
iodine_pubsub_data_mark
a callback for the GC (marking active objects) */
ext/iodine/iodine_pubsub.c:176
Function
iodine_pubsub_data_size
ext/iodine/iodine_pubsub.c:194
Function
iodine_pubsub_default_get
Returns the default {Iodine::PubSub::Engine} for pub/sub methods. */
ext/iodine/iodine_pubsub.c:263
Function
iodine_pubsub_detach
* Removes an {Iodine::PubSub::Engine} from the pub/sub system. * * After an {Iodine::PubSub::Engine} was detached, Iodine will no longer call * the
ext/iodine/iodine_pubsub.c:302
Function
iodine_pubsub_on_publish
Should return 0 on success and -1 on failure. */
ext/iodine/iodine_pubsub.c:111
Function
iodine_pubsub_on_subscribe
Must subscribe channel. Failures are ignored. */
ext/iodine/iodine_pubsub.c:67
Function
iodine_pubsub_on_unsubscribe
Must unsubscribe channel. Failures are ignored. */
ext/iodine/iodine_pubsub.c:89
Function
iodine_pubsub_publish
OVERRIDE this callback - it will be called by {Iodine} whenever the {Iodine.publish} (or {Iodine::Connection#publish}) is called for this engine. If
ext/iodine/iodine_pubsub.c:160
Function
iodine_pubsub_publish
clang-format off Publishes a message to a channel. Can be used using two Strings: publish(to, message) The method accepts an optional `engine
ext/iodine/iodine_connection.c:708
Function
iodine_pubsub_redis_callback_in_gil
A callback for Redis commands. */
ext/iodine/iodine_pubsub.c:421
Function
iodine_pubsub_redis_cmd
clang-format off Sends a Redis command. Accepts an optional block that will recieve the response. i.e.: REDIS_URL = "redis://redis:password@loca
ext/iodine/iodine_pubsub.c:458
Function
iodine_pubsub_redis_new
Initializes a new {Iodine::PubSub::Redis} engine. Iodine::PubSub::Redis.new(url, opt = {}) use: REDIS_URL = "redis://localhost:6379/" I
ext/iodine/iodine_pubsub.c:359
Function
iodine_pubsub_reset
* Forces {Iodine} to call the {Iodine::PubSub::Engine#subscribe} callback for * all existing subscriptions (i.e., when reconnecting to a Pub/Sub back
ext/iodine/iodine_pubsub.c:322
Function
iodine_pubsub_subscribe
OVERRIDE this callback - it will be called by {Iodine} whenever the process CLUSTER (not just this process) subscribes to a stream / channel. */
ext/iodine/iodine_pubsub.c:131
Function
iodine_pubsub_subscribe
clang-format off Subscribes to a Pub/Sub stream / channel or replaces an existing subscription. The method accepts 1-2 arguments and an optional bloc
ext/iodine/iodine_connection.c:604
Function
iodine_pubsub_unsubscribe
OVERRIDE this callback - it will be called by {Iodine} whenever the whole process CLUSTER (not just this process) unsubscribes from a stream / channel
ext/iodine/iodine_pubsub.c:142
Function
iodine_pubsub_unsubscribe
clang-format off Unsubscribes from a Pub/Sub stream / channel. The method accepts a single arguments, the name used for the subscription. i.e.:
ext/iodine/iodine_connection.c:672
Function
iodine_rfc2109
Takes `time` and returns a faster (though less localized) HTTP Date formatted String. Iodine::Rack.rfc2109(Time.now) => "Sun, 11-Jun-2017 06
ext/iodine/iodine_helpers.c:198
Function
iodine_rfc2822
Takes `time` and returns a faster (though less localized) HTTP Date formatted String. Iodine::Rack.rfc2822(Time.now) => "Sun, 11 Jun 2017 06
ext/iodine/iodine_helpers.c:172
Function
iodine_ruby_caller_perform
calls the Ruby method within the protection block */
ext/iodine/iodine_caller.c:85
Function
iodine_ruby_caller_perform_block
calls the Ruby each method within the protection block */
ext/iodine/iodine_caller.c:74
Function
iodine_run_outside_GVL
ext/iodine/iodine.c:103
Function
iodine_running
* Returns `true` if Iodine is currently running a server */
ext/iodine/iodine.c:321
Function
iodine_sched_on_idle
Schedules a single occuring event for the next idle cycle. To schedule a reoccuring event, reschedule the event at the end of it's run. i.e.
ext/iodine/iodine.c:83
Function
iodine_set_GVL
Forces the GVL state flag. */
ext/iodine/iodine_caller.c:201
Function
iodine_sse_on_close
ext/iodine/iodine_http.c:225
Function
iodine_sse_on_open
ext/iodine/iodine_http.c:230
Function
iodine_sse_on_ready
ext/iodine/iodine_http.c:216
Function
iodine_sse_on_shutdown
ext/iodine/iodine_http.c:221
Function
iodine_start
* This will block the calling (main) thread and start the Iodine reactor. * * When using cluster mode (2 or more worker processes), it is important
ext/iodine/iodine.c:272
Function
iodine_start_io_thread
ext/iodine/iodine_defer.c:45
Function
iodine_stop
* This will stop the iodine server, shutting it down. * * If called within a worker process (rather than the root/master process), this * will caus
ext/iodine/iodine.c:294
Function
iodine_tcp_attach_fd
clang-format off The {attach_fd} method instructs iodine to attach a socket to the server using it's numerical file descriptor. This is faster than a
ext/iodine/iodine_tcp.c:273
Function
iodine_tcp_on_close
ext/iodine/iodine_tcp.c:89
Function
iodine_tcp_on_connect
* The `on_connect` callback should either call `fio_attach` or close the * connection. */
ext/iodine/iodine_tcp.c:123
Function
iodine_tcp_on_data
Called when a data is available, but will not run concurrently */
ext/iodine/iodine_tcp.c:56
Function
iodine_tcp_on_data_in_GIL
* Converts an iodine_buffer_s pointer to a Ruby string. */
ext/iodine/iodine_tcp.c:40
Function
iodine_tcp_on_fail
* The `on_fail` is called when a socket fails to connect. The old sock UUID * is passed along. */
ext/iodine/iodine_tcp.c:132
Function
iodine_tcp_on_finish
called when the listening socket is destroyed */
ext/iodine/iodine_tcp.c:114
Function
iodine_tcp_on_open
fio_listen callback, called when a connection opens */
ext/iodine/iodine_tcp.c:104
Function
iodine_tcp_on_ready
called when the socket is ready to be written to. */
ext/iodine/iodine_tcp.c:70
Function
iodine_tcp_on_shutdown
* Called when the server is shutting down, immediately before closing the * connection. */
ext/iodine/iodine_tcp.c:80
Function
iodine_tcp_ping
called when a connection's timeout was reached */
ext/iodine/iodine_tcp.c:97
Function
iodine_tls_alpn
Adds an ALPN protocol callback for the named protocol, the required block must return the handler for that protocol. The first protocol added will be
ext/iodine/iodine_tls.c:205
Function
iodine_tls_alpn_cb
ext/iodine/iodine_tls.c:51
Function
iodine_tls_data_alloc_c
Iodine::PubSub::Engine.allocate */
ext/iodine/iodine_tls.c:41
Function
iodine_tls_data_free
ext/iodine/iodine_tls.c:26
Function
iodine_tls_data_size
ext/iodine/iodine_tls.c:21
Function
iodine_tls_new
Creates a new {Iodine::TLS} object and calles the {#use_certificate} method with the supplied arguments. */
ext/iodine/iodine_tls.c:221
Function
iodine_tls_trust
Adds a certificate PEM file to the list of trusted certificates and enforces peer verification. This is extremely important when using {Iodine::TLS}
ext/iodine/iodine_tls.c:173
Function
iodine_worker_is
* Returns `true` if this process is a worker process or if iodine is running in * a single process mode (the master is also a worker), `false` otherw
ext/iodine/iodine.c:314
Function
iodine_ws_fire_message
ext/iodine/iodine_http.c:133
Function
iodine_ws_on_close
* The (optional) on_close callback will be called once a websocket connection * is terminated or failed to be established. * * The `uuid` is the co
ext/iodine/iodine_http.c:194
Function
iodine_ws_on_message
ext/iodine/iodine_http.c:142
Function
iodine_ws_on_open
* The (optional) on_open callback will be called once the websocket * connection is established and before is is registered with `facil`, so no * `o
ext/iodine/iodine_http.c:157
Function
iodine_ws_on_ready
* The (optional) on_ready callback will be after a the underlying socket's * buffer changes it's state from full to empty. * * If the socket's buff
ext/iodine/iodine_http.c:170
Function
iodine_ws_on_shutdown
* The (optional) on_shutdown callback will be called if a websocket * connection is still open while the server is shutting down (called before * `o
ext/iodine/iodine_http.c:179
Method
listen2http
@deprecated use {Iodine.listen} with `service: :http`. Sets a block of code to run once a Worker process shuts down (both in single process mode and
lib/iodine.rb:82
Function
main
ext/iodine/hpack.h:1107
Function
mock_on_data
ext/iodine/fio.c:2582
Function
mock_on_ev
Mock Protocol Callbacks and Service Funcions ***************************************************************************** */
ext/iodine/fio.c:2577
Function
mock_on_shutdown
ext/iodine/fio.c:2587
Function
mock_on_shutdown_eternal
ext/iodine/fio.c:2593
Function
mock_ping
ext/iodine/fio.c:2600
Function
mock_ping2
ext/iodine/fio.c:2604
Function
mock_ping_eternal
ext/iodine/fio.c:2614
Function
mustache_on_arg
* Called when an argument name was detected in the current section. * * A conforming implementation will search for the named argument both in the
ext/iodine/iodine_mustache.c:156
Function
mustache_on_formatting_error
* Called for cleanup in case of error. */
ext/iodine/iodine_mustache.c:256
Function
mustache_on_section_start
* Called when entering a nested section. * * `index` is a zero based index indicating the number of repetitions that * occurred so far (same as the
ext/iodine/iodine_mustache.c:242
Function
mustache_on_section_test
* Called for nested sections, must return the number of objects in the new * subsection (depending on the argument's name). * * Arrays should retur
ext/iodine/iodine_mustache.c:203
Function
mustache_on_text
* Called when simple template text (string) is detected. * * A conforming implementation will output data as a string (no escaping). */
ext/iodine/iodine_mustache.c:183
Function
new_rack_io
new object
ext/iodine/iodine_rack_io.c:224
Function
on_data
ext/iodine/websockets.c:258
← previous
next →
1,101–1,200 of 1,281, ranked by callers