Gnutella Forums

Gnutella Forums (https://www.gnutellaforums.com/)
-   General Gnutella Development Discussion (https://www.gnutellaforums.com/general-gnutella-development-discussion/)
-   -   Sockets, C and gnutella (https://www.gnutellaforums.com/general-gnutella-development-discussion/10292-sockets-c-gnutella.html)

patricio April 9th, 2002 05:01 PM

Sockets, C and gnutella
 
Hi, im Patricio from Argentina. I´m student of National Technology University, But I´ve a problem. In his code:

if((iSockCli=socket(AF_INET,SOCK_STREAM, xxxx))==-1)


in "xxxx" what i shoud write for identifier to Gnutella protocols?



excuse me, i can´t speak english very well.
thanks

Unregistered April 11th, 2002 07:25 AM

The answer is <b>0</b>.

Unregistered April 26th, 2002 11:31 AM

Hola,
yo también soy un estudiante de la UTN (FRBA) de Argentina.
La pregunta que hiciste es demasiado básica y no pertenece a
este foro sino a uno de sockets y de un nivel principiante. Por favor investiga el tema antes de preguntar.

Hi, i´m a student from Buenos Aires, Argentina too.
(National Technology University (U.T.N.))
The question is too basic for this forum.
Please investigate before ask.
thanks.

Cerebro April 26th, 2002 05:24 PM

Bueno, creo que estamos todos. ¡Saludos a Neetzel!

Realmente es una pregunta muy básica. Preferentemente entrá al foro de www.sistemasoperativos.com.ar

No lo tomes a mal, es sólo por el bien de todos.

Sorry about my spanish. I just say hi.

mjpacin May 30th, 2002 10:15 AM

Hola, Patricio.

Me llamo Maria Jose y tambien curso sistemas operativos en la UTN.

Mira, el tercer parametro de la funcion socket, te permite elegir el protocolo, pero todavia no hay una constante en linux para GNUtella. Por lo tanto te conviene escribir 0 y dejar que el SO se encargue de seleccionar por vos, el mas adecuado.

Saludos, cualquier cosa, podes preguntarme fuera del foro.

Unregistered May 31st, 2002 05:20 AM

Gnucleus is open source, you can look that code over for any info you need. Been there, done that, please don't spend your time re-writing what has already been written.


All times are GMT -7. The time now is 08:41 AM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
SEO by vBSEO 3.6.0 ©2011, Crawlability, Inc.

Copyright © 2020 Gnutella Forums.
All Rights Reserved.