Server Help

General Questions - Hate Non-Bocking Sockets!!!!

Versetti - Sat Jan 24, 2004 11:22 pm
Post subject: Hate Non-Bocking Sockets!!!!
I tried too make my non-blocking sockets but ummmm first my code looks sucky on how I tried too make it work and second it does not work so ARGH need help...... here what I got soo far that does not work for me and also I'm tring too use the select() funcation too do it:

Code: Show/Hide
void recivetest(){
   //char test;
   //char cool1[500];
   //char huh[250];
   int dudemycar;
   fd_set(rtest);
   fd_set(stest);
   fd_set(etest);
   timeval* wow1;
   wow1->tv_sec = 30;
   wow1->tv_usec = 1;
   //dudemycar = mysocket;
   select(NULL,&rtest,&stest,&etest,wow1);
   char wow22[500];
   cout<<"REC: "<<(char)rtest<<"\n\n";
}


plzzz help....................
Smong - Sun Jan 25, 2004 1:39 pm
Post subject:
That doesn't make any sense to me. Have a look at the asss source, chatnet.c for listen sockets and billing.c for the other type, some stuff in protutil.c as well I think.
Versetti - Sun Jan 25, 2004 8:06 pm
Post subject:
Wow the ASSS coding acutally was the only thing that really helped me with select() funcation now I have too see why it frezzes icon_razz.gif
Versetti - Mon Jan 26, 2004 6:04 am
Post subject:
How would I make the text recive properly or take out the errors from the data let me show you a test file that I had it write too and there is like some weird characters in the name and stuff.
Smong - Mon Jan 26, 2004 3:18 pm
Post subject:
I don't know what's in that file, but it makes firebird 0.6 seg fault. Now I lost my session and don't know which posts haven't been read icon_sad.gif
ExplodyThingy - Mon Jan 26, 2004 3:25 pm
Post subject:
Its a text file.
Versetti - Mon Jan 26, 2004 3:35 pm
Post subject:
ok here is what I ment:
Code: Show/Hide
:fellowship.4-irc.com 372 Dude008
see that box character or something taht is not suppose too be there. and how would I be able too fix this??
ExplodyThingy - Mon Jan 26, 2004 3:36 pm
Post subject:
Its simply a ext character that cant be displayed in your browser or notepad.
Cyan~Fire - Mon Jan 26, 2004 5:27 pm
Post subject:
Looks fine for me.
All times are -5 GMT
View topic
Powered by phpBB 2.0 .0.11 © 2001 phpBB Group