]> jfr.im git - irc/ircd-hybrid/libopm.git/log
irc/ircd-hybrid/libopm.git
21 years agoBetter describing of OPM_ERR_T codes in libopm-api.txt
strtok [Sat, 21 Sep 2002 05:50:26 +0000 (05:50 +0000)] 
Better describing of OPM_ERR_T codes in libopm-api.txt

21 years agoUpdated libopm-api.txt
strtok [Sat, 21 Sep 2002 05:09:55 +0000 (05:09 +0000)] 
Updated libopm-api.txt

21 years agoRenamed malloc wrappers with libopm_ prefix and added #defines for MyMalloc and MyFree
strtok [Sat, 21 Sep 2002 03:31:06 +0000 (03:31 +0000)] 
Renamed malloc wrappers with libopm_ prefix and added #defines for MyMalloc and MyFree

21 years agoPrefixed proxy functions with libopm_
strtok [Sat, 21 Sep 2002 02:41:23 +0000 (02:41 +0000)] 
Prefixed proxy functions with libopm_

21 years agoPrefixed functions in libopm.c and list.c with libopm_
strtok [Sat, 21 Sep 2002 01:42:51 +0000 (01:42 +0000)] 
Prefixed functions in libopm.c and list.c with libopm_
Made certain functions (which should be) static

21 years agoChanged all config.c functions to have a libopm_ prefix
strtok [Sat, 21 Sep 2002 00:50:03 +0000 (00:50 +0000)] 
Changed all config.c functions to have a libopm_ prefix

21 years agoAdded libopm-api.txt
strtok [Sat, 14 Sep 2002 22:59:43 +0000 (22:59 +0000)] 
Added libopm-api.txt

21 years agoUse opm_callback on test.c instead of opm_remote_callback
strtok [Sat, 14 Sep 2002 21:58:39 +0000 (21:58 +0000)] 
Use opm_callback on test.c instead of opm_remote_callback

21 years agoRestructured callback code to use an array.
strtok [Sat, 14 Sep 2002 20:44:24 +0000 (20:44 +0000)] 
Restructured callback code to use an array.

21 years agoRemoved printf's and comments used to debug
strtok [Sat, 14 Sep 2002 02:07:57 +0000 (02:07 +0000)] 
Removed printf's and comments used to debug

21 years agoCreated a scan queue, if this is working as it should be... the performance increase is
strtok [Sat, 14 Sep 2002 02:04:49 +0000 (02:04 +0000)] 
Created a scan queue, if this is working as it should be... the performance increase is
amazing.

21 years agoCheck for Nick Faldo
andy [Thu, 12 Sep 2002 06:40:37 +0000 (06:40 +0000)] 
Check for Nick Faldo

21 years agoRemoving a bunch of unused autoconf tests.
andy [Thu, 12 Sep 2002 06:14:59 +0000 (06:14 +0000)] 
Removing a bunch of unused autoconf tests.

21 years agoSome systems don't have inet_aton(), Solaris being a great example. Here's
andy [Thu, 12 Sep 2002 06:12:12 +0000 (06:12 +0000)] 
Some systems don't have inet_aton(), Solaris being a great example.  Here's
our own implementation which is only included if inet_aton() is not
available.

21 years agoIf a system has strings.h, it needs to be #included wherever string.h is
andy [Thu, 12 Sep 2002 05:58:49 +0000 (05:58 +0000)] 
If a system has strings.h, it needs to be #included wherever string.h is
#included.

21 years agoCheck for unistd.h.
andy [Thu, 12 Sep 2002 05:55:56 +0000 (05:55 +0000)] 
Check for unistd.h.

21 years agoIgnore generated binary
andy [Thu, 12 Sep 2002 05:50:27 +0000 (05:50 +0000)] 
Ignore generated binary

21 years agoCheck if we need & have sys/time.h.
andy [Thu, 12 Sep 2002 05:49:49 +0000 (05:49 +0000)] 
Check if we need & have sys/time.h.

21 years agoCheck HAVE_FCNTL_H.
andy [Thu, 12 Sep 2002 05:45:07 +0000 (05:45 +0000)] 
Check HAVE_FCNTL_H.

21 years agoCheck HAVE_SYS_POLL_H.
andy [Thu, 12 Sep 2002 05:42:42 +0000 (05:42 +0000)] 
Check HAVE_SYS_POLL_H.

21 years agoAdd RCS tags to all .c files. Protect standard headers with STDC_HEADERS.
andy [Thu, 12 Sep 2002 05:36:48 +0000 (05:36 +0000)] 
Add RCS tags to all .c files.  Protect standard headers with STDC_HEADERS.
Correct missing "const" in inetntop() prototype.

21 years agoDOn't install "test" and "test_debug", they're just test programs.
andy [Thu, 12 Sep 2002 04:39:29 +0000 (04:39 +0000)] 
DOn't install "test" and "test_debug", they're just test programs.

21 years agoAll of these files I initially copied in. But, apparently, "You should use the
andy [Thu, 12 Sep 2002 03:56:07 +0000 (03:56 +0000)] 
All of these files I initially copied in.  But, apparently, "You should use the
libtoolize program, rather than manually copying these files into your
package."  *smacked wrist*

21 years agoChange default install prefix to /usr/local/libopm.
andy [Thu, 12 Sep 2002 03:45:07 +0000 (03:45 +0000)] 
Change default install prefix to /usr/local/libopm.
Install LICENSE as well.

21 years agoFirst stab at autoconf/automake/libtoolizing libopm.
andy [Thu, 12 Sep 2002 03:41:18 +0000 (03:41 +0000)] 
First stab at autoconf/automake/libtoolizing libopm.

21 years agoAnd again -- some people will need ./configure
andy [Thu, 12 Sep 2002 03:40:01 +0000 (03:40 +0000)] 
And again -- some people will need ./configure

21 years agoMore things for CVS to ignore.
andy [Thu, 12 Sep 2002 03:38:03 +0000 (03:38 +0000)] 
More things for CVS to ignore.

21 years agoA little bit zealous with the cvsignore there.
andy [Thu, 12 Sep 2002 03:33:24 +0000 (03:33 +0000)] 
A little bit zealous with the cvsignore there.

21 years agoautoconf / automake / libtool produce lots of files that need to be
andy [Thu, 12 Sep 2002 03:32:33 +0000 (03:32 +0000)] 
autoconf / automake / libtool produce lots of files that need to be
ignored!

21 years agoFixed various major memory leaks.
strtok [Wed, 11 Sep 2002 18:49:17 +0000 (18:49 +0000)] 
Fixed various major memory leaks.
Made more NULL style changes.

21 years agoAdded checks for NULL function callbacks.
strtok [Wed, 11 Sep 2002 07:47:00 +0000 (07:47 +0000)] 
Added checks for NULL function callbacks.

21 years agoFixed scan_free and connection_free clenaup
strtok [Mon, 9 Sep 2002 20:15:29 +0000 (20:15 +0000)] 
Fixed scan_free and connection_free clenaup

21 years agoFix for timeouts. Only timeout a socket if it's not unestablished!
strtok [Mon, 9 Sep 2002 18:48:27 +0000 (18:48 +0000)] 
Fix for timeouts. Only timeout a socket if it's not unestablished!

21 years agoAdded fd_limit functionality
strtok [Mon, 9 Sep 2002 18:44:13 +0000 (18:44 +0000)] 
Added fd_limit functionality
Added unsigned int fd_use in OPM_T

21 years agoUpdated test.c to handle error callbacks
strtok [Mon, 9 Sep 2002 18:07:50 +0000 (18:07 +0000)] 
Updated test.c to handle error callbacks

21 years agoAdded setup_remote function in libopm.c to fill a remote struct with temporary connec...
strtok [Mon, 9 Sep 2002 17:50:29 +0000 (17:50 +0000)] 
Added setup_remote function in libopm.c to fill a remote struct with temporary connection struct information
Added OPM_CONFIG_MAX_READ and functionality
Added OPM_CONFIG_TIMEOUT and functionality
Added OPM_ERR_MAX_READ and do_error functionality

21 years agoFixed timeout logic
strtok [Mon, 9 Sep 2002 07:54:36 +0000 (07:54 +0000)] 
Fixed timeout logic
Fixed passing of proper protocol on fun_timeout

21 years agoConverted all protocols to libopm (cisco, socks4, socks5 and wingate)
strtok [Mon, 9 Sep 2002 07:50:03 +0000 (07:50 +0000)] 
Converted all protocols to libopm (cisco, socks4, socks5 and wingate)

21 years agoAdded check_close code
strtok [Mon, 9 Sep 2002 07:15:59 +0000 (07:15 +0000)] 
Added check_close code
Added fun_timeout functionality
Added fun_end functionality

21 years agoAdded callback functionality for fun_negfail
strtok [Mon, 9 Sep 2002 06:28:46 +0000 (06:28 +0000)] 
Added callback functionality for fun_negfail

21 years agoAdded OPM_ERR_BADPROTOCOL
strtok [Mon, 9 Sep 2002 04:22:14 +0000 (04:22 +0000)] 
Added OPM_ERR_BADPROTOCOL

21 years agoRenamed OPM_ERR_INVALIDKEY to BADKEY
strtok [Mon, 9 Sep 2002 04:19:10 +0000 (04:19 +0000)] 
Renamed OPM_ERR_INVALIDKEY to BADKEY
Renamed OPM_ERR_BADADDRESS to BADVALUE

21 years agoAdded do_error function
strtok [Mon, 9 Sep 2002 04:16:43 +0000 (04:16 +0000)] 
Added do_error function
Added error codes for opm_config return

21 years agoAdded do_openproxy and open proxy callback
strtok [Mon, 9 Sep 2002 03:39:40 +0000 (03:39 +0000)] 
Added do_openproxy and open proxy callback

21 years agoAdded proxy.c/proxy.h which contains protocol specific functions
strtok [Mon, 9 Sep 2002 03:12:24 +0000 (03:12 +0000)] 
Added proxy.c/proxy.h which contains protocol specific functions

21 years agoRead in data from connection and check against target string
strtok [Mon, 9 Sep 2002 03:11:09 +0000 (03:11 +0000)] 
Read in data from connection and check against target string

21 years agoUse NULL instead of 0 in list.c.
strtok [Mon, 9 Sep 2002 00:15:12 +0000 (00:15 +0000)] 
Use NULL instead of 0 in list.c.

21 years agoAdded connect and poll code
strtok [Sun, 8 Sep 2002 23:56:51 +0000 (23:56 +0000)] 
Added connect and poll code

21 years agoAdded check_poll function and start of poll() code
strtok [Thu, 5 Sep 2002 12:42:00 +0000 (12:42 +0000)] 
Added check_poll function and start of poll() code
Added do_readready function
Added do_writeready function

21 years agoStarted socket framework with check_established, check_poll and do_connect
strtok [Thu, 5 Sep 2002 04:28:31 +0000 (04:28 +0000)] 
Started socket framework with check_established, check_poll and do_connect

21 years agoAdapted DLINK macros from hyb7 (androsyn)
strtok [Thu, 5 Sep 2002 01:56:41 +0000 (01:56 +0000)] 
Adapted DLINK macros from hyb7 (androsyn)

21 years agoAdded inet.c
strtok [Thu, 5 Sep 2002 00:17:04 +0000 (00:17 +0000)] 
Added inet.c

21 years agoConvert IP to byte format on opm_remote_create
strtok [Thu, 5 Sep 2002 00:08:56 +0000 (00:08 +0000)] 
Convert IP to byte format on opm_remote_create

21 years agoAdded opm_cycle API function
strtok [Wed, 4 Sep 2002 22:46:00 +0000 (22:46 +0000)] 
Added opm_cycle API function
Fixed prototype for opm_remote_create
Changed config vars and types to use OPM_ prefix

21 years agoAdded comments to libopm.h/opm.h
strtok [Wed, 4 Sep 2002 21:47:58 +0000 (21:47 +0000)] 
Added comments to libopm.h/opm.h

21 years agoAdded config ADDRESS type
strtok [Wed, 4 Sep 2002 21:18:37 +0000 (21:18 +0000)] 
Added config ADDRESS type

21 years agoAdded inet.h with common ipv4/ipv6
strtok [Wed, 4 Sep 2002 20:57:37 +0000 (20:57 +0000)] 
Added inet.h with common ipv4/ipv6

21 years agoCleaned up various header files.
strtok [Wed, 4 Sep 2002 06:51:53 +0000 (06:51 +0000)] 
Cleaned up various header files.
Moved config API functions from config.h to opm.h

21 years agoSeperated API and non API definitions between opm.h and libopm.h respectively
strtok [Wed, 4 Sep 2002 06:36:07 +0000 (06:36 +0000)] 
Seperated API and non API definitions between opm.h and libopm.h respectively

21 years agoMoved list functions to list.h (structures still reside in opm_common.h)
strtok [Wed, 4 Sep 2002 06:19:22 +0000 (06:19 +0000)] 
Moved list functions to list.h (structures still reside in opm_common.h)

21 years agoMoved libopm_error.h to opm_error.h
strtok [Wed, 4 Sep 2002 06:15:49 +0000 (06:15 +0000)] 
Moved libopm_error.h to opm_error.h
Moved all type #defines to opm_types.h

21 years agoChanged list.h to opm_common.h
strtok [Wed, 4 Sep 2002 06:10:30 +0000 (06:10 +0000)] 
Changed list.h to opm_common.h

21 years agoChanged OPM_SCAN_T::scans to OPM_SCAN_T::connections
strtok [Fri, 9 Aug 2002 19:47:51 +0000 (19:47 +0000)] 
Changed OPM_SCAN_T::scans to OPM_SCAN_T::connections
Added connection_create function
Added connection_free function
Added code to create the list of connections/protocols in scan_create

21 years agoUpdated config_free function to free all data properly
strtok [Fri, 9 Aug 2002 03:44:49 +0000 (03:44 +0000)] 
Updated config_free function to free all data properly
Added config_gettype(key) function

21 years agoRecode of config.c to use an array of void* instead of struct
strtok [Fri, 9 Aug 2002 00:32:02 +0000 (00:32 +0000)] 
Recode of config.c to use an array of void* instead of struct

21 years agoAdded opm_scan function
strtok [Thu, 8 Aug 2002 03:54:38 +0000 (03:54 +0000)] 
Added opm_scan function
Added scan_create function
Added scan_free function

21 years agoRenamed opm_init to opm_create
strtok [Wed, 7 Aug 2002 23:28:11 +0000 (23:28 +0000)] 
Renamed opm_init to opm_create
Renamed opm_remote to opm_remote_create

21 years agoAdded opm_remote_free function
strtok [Wed, 7 Aug 2002 22:53:09 +0000 (22:53 +0000)] 
Added opm_remote_free function
Moved prototypes for internal functions from libopm.h -> libopm.c

21 years agoFixed memory leak in config_free
strtok [Wed, 7 Aug 2002 21:22:35 +0000 (21:22 +0000)] 
Fixed memory leak in config_free
Cleaned up opm_free
Added libopm_error.h (to hold error codes), and OPM_ERR_T

21 years agoFurther work on opm_free
strtok [Wed, 7 Aug 2002 06:02:47 +0000 (06:02 +0000)] 
Further work on opm_free

21 years agoAdded opm_free function
strtok [Wed, 7 Aug 2002 02:45:41 +0000 (02:45 +0000)] 
Added opm_free function
Added protocol_config_free function

21 years agoAdded opm_addtype function
strtok [Wed, 7 Aug 2002 01:13:52 +0000 (01:13 +0000)] 
Added opm_addtype function

21 years agoAdded opm_config and config_set functions
strtok [Tue, 6 Aug 2002 21:46:39 +0000 (21:46 +0000)] 
Added opm_config and config_set functions

21 years agoAdded config.c/config.h to seperate config functions from the API
strtok [Mon, 5 Aug 2002 22:09:11 +0000 (22:09 +0000)] 
Added config.c/config.h to seperate config functions from the API

21 years agoAdded opm_init() and config_create()
strtok [Mon, 5 Aug 2002 22:07:31 +0000 (22:07 +0000)] 
Added opm_init() and config_create()

21 years agoRestructured structures
strtok [Mon, 5 Aug 2002 21:33:51 +0000 (21:33 +0000)] 
Restructured structures

21 years agoNo longer need list_t** in list_add and list_remove, this was from the
strtok [Mon, 5 Aug 2002 19:51:27 +0000 (19:51 +0000)] 
No longer need list_t** in list_add and list_remove, this was from the
attempted polymorphic code
No need to cast returns from malloc

21 years agoMoved source files to src
strtok [Mon, 5 Aug 2002 18:46:44 +0000 (18:46 +0000)] 
Moved source files to src

21 years ago----------------------------------------------------------------------
strtok [Mon, 5 Aug 2002 18:14:36 +0000 (18:14 +0000)] 
----------------------------------------------------------------------
Don't need list_t ** anymore in list_add, list_remove. This was from the
attempted polymorphic code.

21 years agoRemoved any casts on MyMalloc
strtok [Mon, 5 Aug 2002 18:07:47 +0000 (18:07 +0000)] 
Removed any casts on MyMalloc

21 years agoFix for if head is also tail (1 element), this code really would be cleaner if circular
strtok [Mon, 5 Aug 2002 08:29:56 +0000 (08:29 +0000)] 
Fix for if head is also tail (1 element), this code really would be cleaner if circular

21 years agoChanged all malloc/free to MyMalloc/MyFree in list.c
strtok [Mon, 5 Aug 2002 08:08:56 +0000 (08:08 +0000)] 
Changed all malloc/free to MyMalloc/MyFree in list.c
Added node_free and list_free functions

21 years agoAdded elements to track number of elements in a list
strtok [Mon, 5 Aug 2002 07:55:43 +0000 (07:55 +0000)] 
Added elements to track number of elements in a list

21 years agoRevamped list code to include a list_t and node_t
strtok [Mon, 5 Aug 2002 07:54:17 +0000 (07:54 +0000)] 
Revamped list code to include a list_t and node_t

21 years agoAdded list_create function to create a list node
strtok [Mon, 5 Aug 2002 03:31:01 +0000 (03:31 +0000)] 
Added list_create function to create a list node
Added list_add function to add a list node to a list

21 years agoopm_new DOES have a return value
strtok [Sun, 4 Aug 2002 02:01:05 +0000 (02:01 +0000)] 
opm_new DOES have a return value

21 years agoAdded initializations to opm_new
strtok [Sun, 4 Aug 2002 01:56:56 +0000 (01:56 +0000)] 
Added initializations to opm_new

21 years agoOops wrote over libopm.c with libopm.o (gcc -o libopm.c -c libopm.c)!
strtok [Sun, 4 Aug 2002 01:25:34 +0000 (01:25 +0000)] 
Oops wrote over libopm.c with libopm.o (gcc -o libopm.c -c libopm.c)!

21 years agoAdded opm_new and opm_free functions.
strtok [Sun, 4 Aug 2002 01:15:50 +0000 (01:15 +0000)] 
Added opm_new and opm_free functions.
Added comments to malloc.c and libopm.c.

21 years agoAdded malloc/free functions, should make porting and error handling
strtok [Sun, 4 Aug 2002 00:16:37 +0000 (00:16 +0000)] 
Added malloc/free functions, should make porting and error handling
easier in the future.

21 years agoinitial import start
strtok [Sat, 3 Aug 2002 23:25:28 +0000 (23:25 +0000)] 
initial import