…the work can be encapsulated using deferrables
…chain them (closes #177)
The reason argument is an Errno::E* class, or nil when the error was unknown (usually due to a clean shutdown). I only tested the TCP codepaths, so the UDP and unix socket code paths will not propagate errors correctly in all cases. EM::Connection#error? now also returns an Errno::E* class instead of true. Finally, I noticed that errors on read() were not correctly being handled, making it possible for errors like ECONNRESET and ENOTCONN to be ignored. In these cases, EM would never fire an unbind on the connection.
* updated function signature for sendDatagram to accept a byte for data instead of a String. this matches the behavior of the sendData() function for TCP and prevents mangling of your packets due to UTF-safety problems. * updated send_datagram in jeventmachine.rb to call .to_java_bytes on data for compatibility with above.
…r IPv6 (closes #132) Signed-off-by: Aman Gupta <email@example.com>