package irc-client

  1. Overview
  2. Docs
type connection_t
val send_join : connection:connection_t -> channel:string -> unit
val send_nick : connection:connection_t -> nick:string -> unit
val send_pass : connection:connection_t -> password:string -> unit
val send_pong : connection:connection_t -> message:string -> unit
val send_privmsg : connection:connection_t -> target:string -> message:string -> unit
val send_notice : connection:connection_t -> target:string -> message:string -> unit
val send_quit : connection:connection_t -> unit
val send_user : connection:connection_t -> username:string -> mode:int -> realname:string -> unit
val connect : addr:Unix.inet_addr -> port:int -> username:string -> mode:int -> realname:string -> nick:string -> ?password:string -> unit -> connection_t
val connect_by_name : server:string -> port:int -> username:string -> mode:int -> realname:string -> nick:string -> ?password:string -> unit -> connection_t option
val listen : connection:connection_t -> callback:(connection:connection_t -> result:Irc_message.parse_result -> unit) -> unit
OCaml

Innovation. Community. Security.