#518: [PATCH]  Add some constants for sockets
-------------------+--------------------------------------------------------
 Reporter:  bacek  |        Type:  patch 
   Status:  new    |    Priority:  normal
Milestone:         |   Component:  none  
  Version:         |    Severity:  medium
 Keywords:         |        Lang:        
    Patch:  new    |    Platform:        
-------------------+--------------------------------------------------------
Changes (by Infinoid):

  * patch:  => new


Comment:

 Hi!  Thanks for the patch.

 Your use of magic numbers in the Socket_Protocol_Family enum (and possibly
 the other enums) will compile cleanly everywhere, but those numbers are
 very unlikely to all be the same on all platforms.  For instance, PF_INET6
 is not 10 on mingw32, it's 23.

 I would eventually like to add support for lots of other protocols (like
 sctp, netlink and tipc) which are only available on specific platforms.
 So I think we're probably going to have to keep a big list of constants
 and probe to see which ones are available at configure time...

-- 
Ticket URL: <https://trac.parrot.org/parrot/ticket/518#comment:1>
Parrot <https://trac.parrot.org/parrot/>
Parrot Development
_______________________________________________
parrot-tickets mailing list
[email protected]
http://lists.parrot.org/mailman/listinfo/parrot-tickets

Reply via email to