Object

snunit.unsafe

CApi

Related Doc: package unsafe

Permalink

object CApi

Annotations
@link( "unit" ) @extern()
Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. CApi
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. type add_port_t = CFuncPtr2[Ptr[nxt_unit_ctx_t], Ptr[nxt_unit_port_t], CInt]

    Permalink
  2. type close_handler_t = CFuncPtr1[Ptr[nxt_unit_request_info_t], Unit]

    Permalink
  3. type data_handler_t = CFuncPtr1[Ptr[nxt_unit_request_info_t], Unit]

    Permalink
  4. type nxt_unit_buf_t = CStruct3[Ptr[CChar], Ptr[CChar], Ptr[CChar]]

    Permalink
  5. type nxt_unit_callbacks_t = CStruct11[request_handler_t, data_handler_t, websocket_handler_t, close_handler_t, add_port_t, remove_port_t, remove_pid_t, quit_t, shm_ack_handler_t, port_send_t, port_recv_t]

    Permalink
  6. type nxt_unit_ctx_t = CStruct2[Ptr[Byte], Ptr[nxt_unit_t]]

    Permalink
  7. type nxt_unit_field_t = CStruct6[CShort, Byte, Byte, CInt, nxt_unit_sptr_t, nxt_unit_sptr_t]

    Permalink
  8. type nxt_unit_init_t = CStruct11[Ptr[Byte], Ptr[Byte], CInt, CInt, CInt, nxt_unit_callbacks_t, nxt_unit_port_t, CInt, nxt_unit_port_t, nxt_unit_port_t, CInt]

    Permalink
  9. type nxt_unit_port_id_t = CStruct3[pid_t, CInt, CShort]

    Permalink
  10. type nxt_unit_port_t = CStruct4[nxt_unit_port_id_t, Int, Int, Ptr[Byte]]

    Permalink
  11. type nxt_unit_request_info_t = CStruct12[Ptr[nxt_unit_t], Ptr[nxt_unit_ctx_t], Ptr[nxt_unit_port_t], Ptr[Byte], Ptr[nxt_unit_buf_t], Ptr[nxt_unit_response_t], Ptr[nxt_unit_buf_t], CInt, Ptr[nxt_unit_buf_t], CLongInt, CInt, Ptr[Byte]]

    Permalink
  12. type nxt_unit_response_t = CStruct6[CLongInt, CInt, CInt, CShort, nxt_unit_sptr_t, nxt_unit_field_t]

    Permalink
  13. type nxt_unit_t = CStruct1[Ptr[Byte]]

    Permalink
  14. type nxt_unit_websocket_frame_t = CStruct6[Ptr[nxt_unit_request_info_t], CLongInt, Ptr[nxt_websocket_header_t], Ptr[Byte], Ptr[nxt_unit_buf_t], CLongInt]

    Permalink
  15. type nxt_websocket_header_t = CStruct8[Byte, Byte, Byte, Byte, Byte, Byte, Byte, CArray[Byte, _8]]

    Permalink
  16. type port_recv_t = CFuncPtr1[Ptr[nxt_unit_request_info_t], Unit]

    Permalink
  17. type port_send_t = CFuncPtr1[Ptr[nxt_unit_request_info_t], Unit]

    Permalink
  18. type quit_t = CFuncPtr1[Ptr[nxt_unit_ctx_t], Unit]

    Permalink
  19. type remove_pid_t = CFuncPtr1[Ptr[nxt_unit_request_info_t], Unit]

    Permalink
  20. type remove_port_t = CFuncPtr2[Ptr[nxt_unit_t], Ptr[nxt_unit_port_t], Unit]

    Permalink
  21. type request_handler_t = CFuncPtr1[Ptr[nxt_unit_request_info_t], Unit]

    Permalink
  22. type shm_ack_handler_t = CFuncPtr1[Ptr[nxt_unit_request_info_t], Unit]

    Permalink
  23. type websocket_handler_t = CFuncPtr1[Ptr[nxt_unit_websocket_frame_t], Unit]

    Permalink

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  7. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  8. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  9. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  10. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  11. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  12. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  13. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  14. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  15. def nxt_unit_buf_send(buf: Ptr[nxt_unit_buf_t]): CInt

    Permalink
  16. def nxt_unit_done(ctx: Ptr[nxt_unit_ctx_t]): CInt

    Permalink
  17. def nxt_unit_init(init: Ptr[nxt_unit_init_t]): Ptr[nxt_unit_ctx_t]

    Permalink
  18. def nxt_unit_log(ctx: Ptr[nxt_unit_ctx_t], level: Int, fmt: CString): Unit

    Permalink
  19. def nxt_unit_process_port_msg(ctx: Ptr[nxt_unit_ctx_t], port: Ptr[nxt_unit_port_t]): CInt

    Permalink
  20. def nxt_unit_request_done(req: Ptr[nxt_unit_request_info_t], rc: CInt): Unit

    Permalink
  21. def nxt_unit_request_read(req: Ptr[nxt_unit_request_info_t], dst: Ptr[Byte], size: CSize): CSize

    Permalink
  22. def nxt_unit_response_add_content(req: Ptr[nxt_unit_request_info_t], src: CString, size: Int): CInt

    Permalink
  23. def nxt_unit_response_add_field(req: Ptr[nxt_unit_request_info_t], name: CString, name_length: Byte, value: CString, value_length: Int): CInt

    Permalink
  24. def nxt_unit_response_buf_alloc(req: Ptr[nxt_unit_request_info_t], size: CInt): Ptr[nxt_unit_buf_t]

    Permalink
  25. def nxt_unit_response_init(req: Ptr[nxt_unit_request_info_t], status: CShort, max_fields_count: CInt, max_fields_size: CInt): CInt

    Permalink
  26. def nxt_unit_response_send(req: Ptr[nxt_unit_request_info_t]): CInt

    Permalink
  27. def nxt_unit_response_write_nb(req: Ptr[nxt_unit_request_info_t], start: CString, size: CSize, min_size: CSize): CSize

    Permalink
  28. def nxt_unit_run(ctx: Ptr[nxt_unit_ctx_t]): CInt

    Permalink
  29. def nxt_unit_run_once(ctx: Ptr[nxt_unit_ctx_t]): CInt

    Permalink
  30. def nxt_unit_websocket_done(ws: Ptr[nxt_unit_websocket_frame_t]): Unit

    Permalink
  31. def nxt_unit_websocket_read(ws: Ptr[nxt_unit_websocket_frame_t], dest: Ptr[Byte], size: CSize): CSize

    Permalink
  32. def nxt_unit_websocket_send(req: Ptr[nxt_unit_request_info_t], opcode: Byte, last: Byte, start: Ptr[Byte], size: CSize): CInt

    Permalink
  33. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  34. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  35. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  36. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  37. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped