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 |
The answer is <b>0</b>. |
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. |
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. |
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. |
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.