Ticket #45 (closed enhancement: fixed)

Opened 7 years ago

Last modified 7 years ago

Sagot IO Channel API

Reported by: scott Owned by: scott
Priority: major Milestone: Sagot 0.1
Component: Sagot Version:
Keywords: Cc:

Description

Create and implement IOChannel API for Sagot

  • Must allow reading for raw file descriptors
  • Include FileChannel? implementation as a subclass of IOChannel

Change History

Changed 7 years ago by scott

  • status changed from new to closed
  • resolution set to fixed

(In [23]) Migrated to Dapper & Completed FileChannel Object

  • Upgraded my home workstation to dapper, so I had to change configure.in.
  • Added iochannel and filechannel implementations:
    • sagot_glib_filechannel.c
    • sagot_glib_filechannel.h
    • sagot_glib_iochannel.c
    • sagot_glib_iochannel.h
  • Ensured that sagot loads channel implementations

This commit closes #44 & #45

Changed 7 years ago by scott

(In [24]) IOChannel Integration

  • Made first steps toward integrating IOChannel with the event framework
  • Added constants to IOChannel for watch types
    • IOChannel.READ for read-ready events
    • IOChannel.WRITE for write-ready events
    • IOChannel.READ_PRIORITY for read-now (buffer full type) high proprity events
    • IOChannel.ERROR for read/write error events
    • IOChannel.HANGUP for sig-hup and disconnect events
    • IOChannel.INVALID for other error types (closed filehandle, etc)
  • Added close method to IOChannel objects
  • Added watch method (currently non-functional)
  • Fixed error handling
    • undefined references to sagot_iochannel_error
    • sagot_iochannel_error and GError object dereferencing problems
  • Fixed read, readline, getc methods
    • Problem with return value assignments
    • Buffer lengths were using JSVAL_TO_DOUBLE which gives us poor behavior

Still lots of warnings at compile time

refs #45, #46

Note: See TracTickets for help on using tickets.