MCPcopy Create free account

hub / github.com/boazsegev/iodine / functions

Functions1,281 in github.com/boazsegev/iodine

Functioniodine_io_thread
ext/iodine/iodine_defer.c:35
Functioniodine_json_parse
Parse a JSON string using the iodine lenient parser (it's also faster). */
ext/iodine/iodine_json.c:217
Functioniodine_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
Functioniodine_leaveGVL
Calls a C function outside the GVL. */
ext/iodine/iodine_caller.c:125
Functioniodine_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
Functioniodine_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
Functioniodine_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
Functioniodine_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
Functioniodine_mustache_data_alloc_c
Iodine::PubSub::Engine.allocate */
ext/iodine/iodine_mustache.c:49
Functioniodine_mustache_data_free
ext/iodine/iodine_mustache.c:28
Functioniodine_mustache_data_size
ext/iodine/iodine_mustache.c:18
Functioniodine_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
Functioniodine_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
Functioniodine_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
Functioniodine_on_pubsub
callback for incoming subscription messages */
ext/iodine/iodine_connection.c:416
Functioniodine_on_pubsub_call_block
calls the Ruby block assigned to a pubsub event (within the GVL). */
ext/iodine/iodine_connection.c:402
Functioniodine_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
Functioniodine_on_unsubscribe
callback for subscription closure */
ext/iodine/iodine_connection.c:472
Functioniodine_perform_on_idle_callback
performs a Ruby state callback and clears the Ruby object's memory */
ext/iodine/iodine.c:64
Functioniodine_perform_state_callback_persist
performs a Ruby state callback without clearing the Ruby object's memory */
ext/iodine/iodine_defer.c:297
Functioniodine_protect_ruby_call
wrap the function call in exception handling block (uses longjmp) */
ext/iodine/iodine_caller.c:91
Functioniodine_pubsub_GIL_publish
calls an engine's `unsubscribe` callback within the GVL */
ext/iodine/iodine_pubsub.c:101
Functioniodine_pubsub_GIL_subscribe
calls an engine's `subscribe` callback within the GVL */
ext/iodine/iodine_pubsub.c:57
Functioniodine_pubsub_GIL_unsubscribe
calls an engine's `unsubscribe` callback within the GVL */
ext/iodine/iodine_pubsub.c:79
Functioniodine_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
Functioniodine_pubsub_data_alloc_c
Iodine::PubSub::Engine.allocate */
ext/iodine/iodine_pubsub.c:212
Functioniodine_pubsub_data_free
a callback for the GC (marking active objects) */
ext/iodine/iodine_pubsub.c:183
Functioniodine_pubsub_data_mark
a callback for the GC (marking active objects) */
ext/iodine/iodine_pubsub.c:176
Functioniodine_pubsub_data_size
ext/iodine/iodine_pubsub.c:194
Functioniodine_pubsub_default_get
Returns the default {Iodine::PubSub::Engine} for pub/sub methods. */
ext/iodine/iodine_pubsub.c:263
Functioniodine_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
Functioniodine_pubsub_on_publish
Should return 0 on success and -1 on failure. */
ext/iodine/iodine_pubsub.c:111
Functioniodine_pubsub_on_subscribe
Must subscribe channel. Failures are ignored. */
ext/iodine/iodine_pubsub.c:67
Functioniodine_pubsub_on_unsubscribe
Must unsubscribe channel. Failures are ignored. */
ext/iodine/iodine_pubsub.c:89
Functioniodine_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
Functioniodine_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
Functioniodine_pubsub_redis_callback_in_gil
A callback for Redis commands. */
ext/iodine/iodine_pubsub.c:421
Functioniodine_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
Functioniodine_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
Functioniodine_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
Functioniodine_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
Functioniodine_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
Functioniodine_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
Functioniodine_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
Functioniodine_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
Functioniodine_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
Functioniodine_ruby_caller_perform
calls the Ruby method within the protection block */
ext/iodine/iodine_caller.c:85
Functioniodine_ruby_caller_perform_block
calls the Ruby each method within the protection block */
ext/iodine/iodine_caller.c:74
Functioniodine_run_outside_GVL
ext/iodine/iodine.c:103
Functioniodine_running
* Returns `true` if Iodine is currently running a server */
ext/iodine/iodine.c:321
Functioniodine_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
Functioniodine_set_GVL
Forces the GVL state flag. */
ext/iodine/iodine_caller.c:201
Functioniodine_sse_on_close
ext/iodine/iodine_http.c:225
Functioniodine_sse_on_open
ext/iodine/iodine_http.c:230
Functioniodine_sse_on_ready
ext/iodine/iodine_http.c:216
Functioniodine_sse_on_shutdown
ext/iodine/iodine_http.c:221
Functioniodine_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
Functioniodine_start_io_thread
ext/iodine/iodine_defer.c:45
Functioniodine_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
Functioniodine_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
Functioniodine_tcp_on_close
ext/iodine/iodine_tcp.c:89
Functioniodine_tcp_on_connect
* The `on_connect` callback should either call `fio_attach` or close the * connection. */
ext/iodine/iodine_tcp.c:123
Functioniodine_tcp_on_data
Called when a data is available, but will not run concurrently */
ext/iodine/iodine_tcp.c:56
Functioniodine_tcp_on_data_in_GIL
* Converts an iodine_buffer_s pointer to a Ruby string. */
ext/iodine/iodine_tcp.c:40
Functioniodine_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
Functioniodine_tcp_on_finish
called when the listening socket is destroyed */
ext/iodine/iodine_tcp.c:114
Functioniodine_tcp_on_open
fio_listen callback, called when a connection opens */
ext/iodine/iodine_tcp.c:104
Functioniodine_tcp_on_ready
called when the socket is ready to be written to. */
ext/iodine/iodine_tcp.c:70
Functioniodine_tcp_on_shutdown
* Called when the server is shutting down, immediately before closing the * connection. */
ext/iodine/iodine_tcp.c:80
Functioniodine_tcp_ping
called when a connection's timeout was reached */
ext/iodine/iodine_tcp.c:97
Functioniodine_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
Functioniodine_tls_alpn_cb
ext/iodine/iodine_tls.c:51
Functioniodine_tls_data_alloc_c
Iodine::PubSub::Engine.allocate */
ext/iodine/iodine_tls.c:41
Functioniodine_tls_data_free
ext/iodine/iodine_tls.c:26
Functioniodine_tls_data_size
ext/iodine/iodine_tls.c:21
Functioniodine_tls_new
Creates a new {Iodine::TLS} object and calles the {#use_certificate} method with the supplied arguments. */
ext/iodine/iodine_tls.c:221
Functioniodine_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
Functioniodine_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
Functioniodine_ws_fire_message
ext/iodine/iodine_http.c:133
Functioniodine_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
Functioniodine_ws_on_message
ext/iodine/iodine_http.c:142
Functioniodine_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
Functioniodine_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
Functioniodine_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
Methodlisten2http
@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
Functionmain
ext/iodine/hpack.h:1107
Functionmock_on_data
ext/iodine/fio.c:2582
Functionmock_on_ev
Mock Protocol Callbacks and Service Funcions ***************************************************************************** */
ext/iodine/fio.c:2577
Functionmock_on_shutdown
ext/iodine/fio.c:2587
Functionmock_on_shutdown_eternal
ext/iodine/fio.c:2593
Functionmock_ping
ext/iodine/fio.c:2600
Functionmock_ping2
ext/iodine/fio.c:2604
Functionmock_ping_eternal
ext/iodine/fio.c:2614
Functionmustache_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
Functionmustache_on_formatting_error
* Called for cleanup in case of error. */
ext/iodine/iodine_mustache.c:256
Functionmustache_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
Functionmustache_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
Functionmustache_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
Functionnew_rack_io
new object
ext/iodine/iodine_rack_io.c:224
Functionon_data
ext/iodine/websockets.c:258
← previousnext →1,101–1,200 of 1,281, ranked by callers