Bill Pringlemeir wrote:
> I don't really understand why the assertion is like this in udp.c
>
> /**
> * Send a datagram to the specified node, made of `len' bytes from `buf',
> * forming a valid Gnutella message.
> */
> void
> udp_send_msg(const gnutella_node_t *n, gconstpointer buf, gint len)
> {
> **** g_assert(NODE_IS_UDP(n));
> g_return_if_fail(n->outq);
>
> mq_udp_node_putq(n->outq, gmsg_to_pmsg(buf, len), n);
> }
> Is NODE_IS_UDP(n) the fake UDP pseudo node?
There is not "the" fake UDP node. There may be two, one for IPv4 and another
for IPv6. This is because you need different sockets for each and each node
has only one socket.
> If not, then how are ULTRA and LEAF UDP nodes differentiated?
The UDP nodes rather refer to ourselves. Whether the sender/receiver of a UDP
packet is a ultrapeer or a leaf usually does not matter in such a context. Most
of the time we don't know.
> I have a pause on error process waiting. I will let it sit for some time.
> Then I will update from SVN and re-compile. This may already be fixed?
Thanks, it should be fixed now. Initially this worked over UDP only. Use of
udp_send_msg() was just a left-over.
--
Christian
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Gtk-gnutella-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gtk-gnutella-devel