Difference between revisions of "%netid hash"

From Botnix
Jump to: navigation, search
 
 
Line 1: Line 1:
 
== %netid hash ==
 
== %netid hash ==
  
This hash contains a list of current networks
+
This hash contains a list of current networks which is basically copied from the config to the socket engine and used to track connections.
which is basically copied from the config to the
 
socket engine and used to track connections.
 
  
 
*$main::netid{$nid}{handle} - '''File descriptor for this network's connection'''
 
*$main::netid{$nid}{handle} - '''File descriptor for this network's connection'''

Latest revision as of 07:52, 9 October 2019

%netid hash

This hash contains a list of current networks which is basically copied from the config to the socket engine and used to track connections.

  • $main::netid{$nid}{handle} - File descriptor for this network's connection
  • $main::netid{$nid}{nick} - Nickname used on this network currently
  • $main::netid{$nid}{server} - Server used to connect to this network
  • $main::netid{$nid}{ip} - IP Address of server (either ipv4 or ipv6 format)
  • $main::netid{$nid}{port} - Port number used to connect to this network
  • $main::netid{$nid}{username} - Username/ident used on this network
  • $main::netid{$nid}{gecos} - GECOS (fullname) used on this network
  • $main::netid{$nid}{bind} - IP Bound to for making this connection
  • $main::netid{$nid}{pass} - Password (or undef) for this network
  • $main::netid{$nid}{lag} - Lag in seconds for this connection
  • $main::netid{$nid}{lastping} - Time last pinged (unix epoch) to calculate lag
  • $main::netid{$nid}{is_ssl} - Contains 1 if this network is ssl enabled
  • $main::netid{$nid}{ssl} - SSL Object (from SSLeay) if is_ssl == 1
  • $main::netid{$nid}{ctx} - SSL Context object (from SSLeay) if is_ssl == 1