package irc-client
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
IRC client library
Install
dune-project
Dependency
Authors
Maintainers
Sources
0.4.0.tar.gz
sha256=249df9d7bde9f09674e0f2e50560652181af9e701ea92c276a4e4b2c8a2da126
md5=4424648730b87edfcf96ffae4072550a
doc/irc-client.unix/Irc_client_unix/index.html
Module Irc_client_unix
include Irc_client.CLIENT
with type 'a Io.t = 'a
and type Io.inet_addr = Unix.inet_addr
and type Io.config = unit
module Io : sig ... endval send : connection:connection_t -> Irc_message.t -> unit Io.tSend the given message
val send_join : connection:connection_t -> channel:string -> unit Io.tSend the JOIN command.
val send_nick : connection:connection_t -> nick:string -> unit Io.tSend the NICK command.
val send_pass : connection:connection_t -> password:string -> unit Io.tSend the PASS command.
val send_pong : connection:connection_t -> message:string -> unit Io.tSend the PONG command.
val send_privmsg :
connection:connection_t ->
target:string ->
message:string ->
unit Io.tSend the PRIVMSG command.
val send_notice :
connection:connection_t ->
target:string ->
message:string ->
unit Io.tSend the NOTICE command.
val send_quit : connection:connection_t -> unit Io.tSend the QUIT command.
val send_user :
connection:connection_t ->
username:string ->
mode:int ->
realname:string ->
unit Io.tSend the USER command.
val connect :
?username:string ->
?mode:int ->
?realname:string ->
?password:string ->
?config:Io.config ->
addr:Io.inet_addr ->
port:int ->
nick:string ->
unit ->
connection_t Io.tConnect to an IRC server at address addr. The PASS command will be sent if password is not None.
val connect_by_name :
?username:string ->
?mode:int ->
?realname:string ->
?password:string ->
?config:Io.config ->
server:string ->
port:int ->
nick:string ->
unit ->
connection_t option Io.tTry to resolve the server name using DNS, otherwise behaves like connect. Returns None if no IP could be found for the given name.
Information on keeping the connection alive
val default_keepalive : keepaliveDefault value for keepalive: active mode with auto-reconnect
val listen :
?keepalive:keepalive ->
connection:connection_t ->
callback:(connection_t -> Irc_message.parse_result -> unit Io.t) ->
unit ->
unit Io.tlisten connection callback listens for incoming messages on connection. All server pings are handled internally; all other messages are passed, along with connection, to callback.
val reconnect_loop :
?keepalive:keepalive ->
after:int ->
connect:(unit -> connection_t option Io.t) ->
f:(connection_t -> unit Io.t) ->
callback:(connection_t -> Irc_message.parse_result -> unit Io.t) ->
unit ->
unit Io.tval set_log : (string -> unit Io.t) -> unitSet logging function
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>