Esempio n. 1
0
 public static extern unsafe void ice_storage_kv_hash_map_ext_remove(
     CoreHashMapExt *hm,
     string k,
     string map_key,
     KVStorageRemoveItemCallback callback,
     CoreResource *call_with
     );
Esempio n. 2
0
 public static extern unsafe void ice_stream_rstream_begin_recv(
     CoreReadStream *target,
     ReadStreamOnDataCallback cb_on_data,
     ReadStreamOnEndCallback cb_on_end,
     ReadStreamOnErrorCallback cb_on_error,
     CoreResource *call_with
     );
Esempio n. 3
0
 public static extern unsafe void ice_storage_kv_expire_sec(
     CoreKVStorage *handle,
     string k,
     uint t,
     KVStorageRemoveItemCallback cb,
     CoreResource *call_with
     );
Esempio n. 4
0
 public static extern unsafe void ice_storage_kv_set(
     CoreKVStorage *handle,
     string k,
     string v,
     KVStorageSetItemCallback cb,
     CoreResource *call_with
     );
Esempio n. 5
0
 public static extern unsafe void ice_glue_request_set_session_item_async(
     CoreRequest *req,
     string key,
     string value,
     SetSessionItemCallback cb,
     CoreResource *call_with
     );
Esempio n. 6
0
        public unsafe void endpointCallback(
            CoreEndpointContext *rawCtx,
            CoreHttpRequest *rawReq,
            CoreResource *call_with
            )
        {
            EndpointContext ctx = new EndpointContext(rawCtx);
            HttpRequest     req = new HttpRequest(rawReq);

            realEndpointCallback(ctx, req);
        }
Esempio n. 7
0
        static unsafe void writeStringData(System.IntPtr value, CoreResource *data)
        {
            GCHandle   handle = (GCHandle)(System.IntPtr)data;
            StringData target = (StringData)handle.Target;

            if (value == System.IntPtr.Zero)
            {
                target.Value = null;
            }
            else
            {
                target.Value = Marshal.PtrToStringUTF8(value);
            }
        }
Esempio n. 8
0
 public static extern unsafe void ice_http_request_get_remote_addr(
     CoreHttpRequest *req,
     GetStringInstantCallback cb,
     CoreResource *call_with
     );
Esempio n. 9
0
 public static extern unsafe CoreRouteInfo *ice_http_server_route_create(
     string path,
     RouteCallback callback,
     CoreResource *call_with
     );
Esempio n. 10
0
 public static extern unsafe void ice_context_set_custom_app_data(CoreServer *server, CoreResource *data);