Class | AlienConnection
In: | alienconnection.rb
Parent: | Object

Handles socket communication w/an Alien RFID Reader.

### Methods

close connect connected new open receive send sendreceive

### Attributes

raise_errors | [RW] |

### Public Class methods

new()

### Public Instance methods

close(send_quit=true)

Close the socket.

connect(ipaddress='localhost', port=23)

Try to open a socket connection to the reader.

connected()

Returns the connected status of this AlienReader.

open(ipaddress="localhost", port=23, username="alien", password="password")

Stores the connection parameters, then opens the connection (including login).

receive(opts={})

Read from the open socket until a null character is found. Strips off the trailing \r\n from the response

send(msg="")

Send a message over an open socket (Alien terse msg format to suppress prompts on reply)

sendreceive(msg="", opts={})

Send a message over an open socket and wait for a reply

[Validate]