Hello.

 I'm planning to add support for the SCTP protocol[1] in ecore_con at
some point in the near future (after I'm finished with my current
playground - more about it real soon), but as API is being frozen, I
thought I'd better send this now.

 SCTP is a modern protocol with some great features:
- supports multi-homing (multiple IPs - both v4 and v6 - per client,
  at least for fallback, with concurrent multipath transfers on some
  implementations)
- supports multiple streams (16 bits id) over a single association
  (connection) (a bit like ATM virtual channels)

 However, ecore_con's API doesn't support that kind of features.

 Here is thus some proposals:
- for multi-homing:
  - add Eina_List *ecore_con_{server,client}_ips_get(), returning an
    Eina_List of char *, like ecore_con_{server,client}_ip_get, that
    will be returning the first ip for SCTP
  - another proposal would be to make ecore_con_{server,client}_ip_get
    return the list instead of a sole IP like now (though this is maybe
    much too invasive)
- for multiple streams:
  - we could make a new client for each stream, with new
    - Ecore_Con_Client *ecore_con_client_parent_get(Ecore_Con_Client *child),
      that would give the 0th,
    - int ecore_con_client_child_id_get(Ecore_Con_Client *child),
      that would give this client id,
    - Ecore_Con_Client *ecore_con_client_child_get(Ecore_Con_Client *parent, 
int id),
      that would give the nth stream, creating a new Ecore_Con_Client
      if needed
    - Eina_List *ecore_con_client_children_get(Ecore_Con_Client *parent)
  - add an int stream to Ecore_Con_Event_{Client/Server}_Data and
    ecore_con_{client,server}_send()

 This can also be of use for TCP, as we could use the Out-Of-Band
bit to have a second stream.

 Please comment on these propositions.

 Cheers!

 Chidambar

[1] RFC4960 "Stream Control Transmission Protocol"
    http://tools.ietf.org/html/rfc4960
-- 
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?

------------------------------------------------------------------------------
Nokia and AT&T present the 2010 Calling All Innovators-North America contest
Create new apps & games for the Nokia N8 for consumers in  U.S. and Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store 
http://p.sf.net/sfu/nokia-dev2dev
_______________________________________________
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to