Hi all

It seems this patch is needed for gdomap

Index: Tools/gdomap.h
===================================================================
--- Tools/gdomap.h      (revision 25630)
+++ Tools/gdomap.h      (copie de travail)
@@ -183,7 +183,7 @@
  */
 #define        GDO_NET_MASK    0x70    /* Network protocol of port.            
*/
 #define        GDO_NET_TCP     0x10
-#define        GDO_NET_UDP     0x10
+#define        GDO_NET_UDP     0x20
 #define        GDO_SVC_MASK    0x0f    /* High level protocol of port.         
*/
 #define        GDO_SVC_GDO     0x01
 #define        GDO_SVC_FOREIGN 0x02
 
Otherwise, I don't see how the following snippet from gdomap.c could
create an udp socket.

if ((ptype & GDO_NET_MASK) == GDO_NET_TCP)
{
        sock = socket(AF_INET, SOCK_STREAM, IPPROTO_TCP);
}
else if ((ptype & GDO_NET_MASK) == GDO_NET_UDP)
{
        sock = socket(AF_INET, SOCK_DGRAM, IPPROTO_UDP);
}
                                        
If this is the intended behavior, could someone explain it to me ?

Thanks,
Philippe
-- 
When Dilbert has a better working environment than you its time to leave



_______________________________________________
Gnustep-dev mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/gnustep-dev

Reply via email to