Will i be force.
Dear Sir/Madam My name is Kevin, I want to build an OS that is derived from freebsd but Should i be worried about FreeBSD license when i am deriving. -- Sent from my Nokia phone ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Will i be force.
On Tue, 14 May 2013 21:18:43 +, k_win...@ovi.com wrote: Dear Sir/Madam My name is Kevin, I want to build an OS that is derived from freebsd but Should i be worried about FreeBSD license when i am deriving. You should not be worried about the license. Just follow it. The license grants you several rights, and as long as you comply with the license, there is no problem deriving a new OS from FreeBSD. Just make sure you don't violate any copyright. Note that I am not a lawyer, and this is no official response from a FreeBSD body. Depending on your local legislation, I suggest you discuss the topic with a lawyer you trust to give you further advice. Also read the legal documents provided by FreeBSD itself and other sources. Read and understand (!) the license itself. http://www.freebsd.org/copyright/freebsd-license.html http://www.freebsd.org/copyright/ http://en.wikipedia.org/wiki/BSD_licenses#2-clause_license_.28.22Simplified_BSD_License.22_or_.22FreeBSD_License.22.29 You may find more specific answers by directing your questions to a legal representative of the FreeBSD foundation or a more appropriate mailing list (-questions@ is for general questions, usually answered by FreeBSD users and contributors). -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ... ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Will i be force.
On Tue, May 14, 2013 at 09:18:43PM +, k_win...@ovi.com wrote: Dear Sir/Madam My name is Kevin, I want to build an OS that is derived from freebsd but Should i be worried about FreeBSD license when i am deriving. No. Not at all. FreeBSD allows free use including modifying. Look it up on the FreeBSD web sitehttp://www.freebsd.org/ jerry -- Sent from my Nokia phone ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: How i can force a stream socket to wait as limited time inaccept() function?
On Tue, 8 Oct 2002, alireza mahini wrote: Please sending for me a sample code that set a timeout for accept(). ///Alireza Not a complete example, but the concept is there: int sl, sc; fd_set rset; sl=socket(); /* * listen, bind, etc goes here */ flags=fcntl(sl, F_GETFL,0); flags=fcntl(sl, F_SETFL, flags | O_NONBLOCK); while(1) { select(sl+1, rset, 0, 0, tv); if (FD_ISSET(sl, rset){ accept(); } } --- Fernando Gleiser [EMAIL PROTECTED] wrote: On Tue, 8 Oct 2002, alireza mahini wrote: I am a C++ programmer and the platform that i develop my project on it is FreeBSD4.4 .I am aplaying the setsocketopt()function for seting the timeout into the stream socket that blocked in accept() function but i can't successful. It's easy, mmmkay :) You need to set the socket descriptor in non-blocking mode, then call accept. accept will fail and return -1 with errno set to EWOULDBLOCK, the call select(2) on the socket. select will return when a connection arrives (you need to test for it) or when the timeout expires. I (and everybody else) recommend Unix Network Programming, 2d Ed by Rich Stevens. It is THE book for unix programmers. Fer __ Do you Yahoo!? Faith Hill - Exclusive Performances, Videos More http://faith.yahoo.com To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message __ Do you Yahoo!? Faith Hill - Exclusive Performances, Videos More http://faith.yahoo.com To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
Re: How i can force a stream socket to wait as limited time inaccept() function?
You need to set the socket descriptor in non-blocking mode, then call accept. accept will fail and return -1 with errno set to EWOULDBLOCK, the call select(2) on the socket. select will return when a connection arrives (you need to test for it) or when the timeout expires. You don't need to put the socket in non-blocking mode to select for accept. See example program below. -- Richard #include stdio.h #include string.h #include unistd.h #include sys/types.h #include sys/socket.h #include sys/time.h #include netinet/in.h int main(int argc, char **argv) { static struct sockaddr_in addr; int s; fd_set fds; struct timeval t = {5, 0}; s = socket(PF_INET, SOCK_STREAM, 0); addr.sin_family = AF_INET; addr.sin_port = htons(atoi(argv[1])); if(bind(s, (struct sockaddr *)addr, sizeof(addr)) 0) { perror(bind); return 1; } listen(s, 5); FD_ZERO(fds); FD_SET(s, fds); switch(select(s+1, fds, 0, 0, t)) { case 0: printf(timed out\n); return 0; case -1: perror(select); return 1; default: printf(select returned\n); printf(accept returned %d\n, accept(s, 0, 0)); return 0; } } To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
How i can force a stream socket to wait as limited time in accept() function?
I am a C++ programmer and the platform that i develop my project on it is FreeBSD4.4 .I am aplaying the setsocketopt()function for seting the timeout into the stream socket that blocked in accept() function but i can't successful. __ Do you Yahoo!? Faith Hill - Exclusive Performances, Videos More http://faith.yahoo.com To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
Re: How i can force a stream socket to wait as limited time in accept()function?
alireza mahini wrote: I am a C++ programmer and the platform that i develop my project on it is FreeBSD4.4 .I am aplaying the setsocketopt()function for seting the timeout into the stream socket that blocked in accept() function but i can't successful. You must include (at least part of) your source code for people here to be able to answer your question. Best regards, Paul To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
Re: How i can force a stream socket to wait as limited time inaccept() function?
On Tue, 8 Oct 2002, alireza mahini wrote: I am a C++ programmer and the platform that i develop my project on it is FreeBSD4.4 .I am aplaying the setsocketopt()function for seting the timeout into the stream socket that blocked in accept() function but i can't successful. It's easy, mmmkay :) You need to set the socket descriptor in non-blocking mode, then call accept. accept will fail and return -1 with errno set to EWOULDBLOCK, the call select(2) on the socket. select will return when a connection arrives (you need to test for it) or when the timeout expires. I (and everybody else) recommend Unix Network Programming, 2d Ed by Rich Stevens. It is THE book for unix programmers. Fer __ Do you Yahoo!? Faith Hill - Exclusive Performances, Videos More http://faith.yahoo.com To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message