src/irc_net.h
changeset 27 e6639132bead
parent 26 aec062af155d
child 44 6bd70113e1ed
equal deleted inserted replaced
26:aec062af155d 27:e6639132bead
    27 
    27 
    28     /** SSL? */
    28     /** SSL? */
    29     bool use_ssl;
    29     bool use_ssl;
    30 
    30 
    31     /** Protocol registration info */
    31     /** Protocol registration info */
    32     struct irc_conn_config register_info;
    32     struct irc_conn_register_info register_info;
    33 };
    33 };
    34 
    34 
    35 /**
    35 /**
    36  * IRC Network state
    36  * IRC Network state
    37  */
    37  */
    53  * @param err used to return extended error information
    53  * @param err used to return extended error information
    54  */
    54  */
    55 err_t irc_net_create (struct irc_net **net, const struct irc_net_info *info, struct error_info *err);
    55 err_t irc_net_create (struct irc_net **net, const struct irc_net_info *info, struct error_info *err);
    56 
    56 
    57 /**
    57 /**
    58  * Create a new irc_chan, add it to our channel list, and send the JOIN request.
    58  * Create a new irc_chan and add it to our channel list.
       
    59  *
       
    60  * If we are connected and registered, JOIN the channel right away, otherwise, join it once we register.
    59  */
    61  */
    60 struct irc_chan* irc_net_add_chan (struct irc_net *net, const struct irc_chan_info *info);
    62 struct irc_chan* irc_net_add_chan (struct irc_net *net, const struct irc_chan_info *info);
    61 
    63 
    62 /**
    64 /**
    63  * Look up an existing irc_chan by name, returning NULL if not found.
    65  * Look up an existing irc_chan by name, returning NULL if not found.