
<<<<<<<<< COMPORT.DLL >>>>>>>>>>

Created for Dan Hoolihan.
Placed in the freeware domain with permission of the author.
Use this at your own risk.
Absolutely no support provided!

VDS Usage notes:

To open a port:
	@lib(comport,openportex,int:,str:<C>,int:<B>,int:<P>,int:<S>,int:<D>)
	Where
		<C> = com port  = com1, com2, com3, com4
		<B> = baud rate = 110, 300, 1200, 2400, 4800, 9600, 19200, 38400, 57600, 115200
		<P> = parity    = 0 (none), 1 (odd), 2 (even), 3 (mark), 4 (space)
		<S> = stop bits = 0 (one), 1 (one and a half), 2 (two)
		<D> = data bits = 5, 6, 7, 8

		this returns a zero (0) if it fails, and a one (1) if it's successful

	Example: %x = @lib(comport,openportex,int:,str:com1,int:9600,int:0,int:0,int:8)
	will open com1 at 9600 baud, 8, none and 1

To close the port:
	@lib(comport,closeport,int:)

		this returns a zero (0) if it fails, and a one (1) if it's successful

	Example: %x = @lib(comport,closeport,int:)

To read from the open port:
	@lib(comport,readport,int:,int:<timeout>)
	Where
		<timeout> is an integer representing the timeout period in milliseconds.

		this returns a zero (0) if it fails or times out, and the raw data if it's successful

	Example: %d = @lib(comport,readport,int:,int:1000)
	will return one character of decimal data, 
	or a zero if it does not receive anyting within 1 second

To write to the open port:
	@lib(comport,writeport,int:,int:<data>)
	Where
		<data> is an integer representing the decimal data to write.

		this returns a zero (0) if it fails, and a one (1) if it's successful

	Example: %x = @lib(comport,writeport,int:,int:64)
	will write an atsign (@) to the open comport
















