Server Help Forum Index Server Help
Community forums for Subgame, ASSS, and bots
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   StatisticsStatistics   RegisterRegister 
 ProfileProfile   Login to check your private messagesLogin to check your private messages   LoginLogin (SSL) 

Server Help | ASSS Wiki (-1) | Shanky.com
Hate Non-Bocking Sockets!!!!

 
Post new topic   Reply to topic Printable version
 View previous topic  Ball Position Post :: Post Subgame2 problem  View next topic  
Author Message
Versetti
Novice


Gender:Gender:Male
Joined: Jan 05 2004
Posts: 54
Offline

PostPosted: Sat Jan 24, 2004 11:22 pm    Post subject: Hate Non-Bocking Sockets!!!! Reply to topic Reply with quote

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....................
Back to top
View users profile Send private message Add User to Ignore List AIM Address MSN Messenger
Smong
Server Help Squatter


Joined: 1043048991
Posts: 0x91E
Offline

PostPosted: Sun Jan 25, 2004 1:39 pm    Post subject: Reply to topic Reply with quote

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.
Back to top
View users profile Send private message Add User to Ignore List Visit posters website MSN Messenger
Versetti
Novice


Gender:Gender:Male
Joined: Jan 05 2004
Posts: 54
Offline

PostPosted: Sun Jan 25, 2004 8:06 pm    Post subject: Reply to topic Reply with quote

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
Back to top
View users profile Send private message Add User to Ignore List AIM Address MSN Messenger
Versetti
Novice


Gender:Gender:Male
Joined: Jan 05 2004
Posts: 54
Offline

PostPosted: Mon Jan 26, 2004 6:04 am    Post subject: Reply to topic Reply with quote

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.



HERE

Testing.txt - 15.87 KB
File downloaded or viewed 30 time(s)
Back to top
View users profile Send private message Add User to Ignore List AIM Address MSN Messenger
Smong
Server Help Squatter


Joined: 1043048991
Posts: 0x91E
Offline

PostPosted: Mon Jan 26, 2004 3:18 pm    Post subject: Reply to topic Reply with quote

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
Back to top
View users profile Send private message Add User to Ignore List Visit posters website MSN Messenger
ExplodyThingy
Server Help Squatter


Age:39
Gender:Gender:Male
Joined: Dec 15 2002
Posts: 528
Location: Washington DC
Offline

PostPosted: Mon Jan 26, 2004 3:25 pm    Post subject: Reply to topic Reply with quote

Its a text file.
_________________
There are no stupid question, but there are many inquisitive idiots.
Loot

Dr Brain> I hate clean air and clean water. I'm a member of Evil Conservitive Industries
Back to top
View users profile Send private message Add User to Ignore List Visit posters website
Versetti
Novice


Gender:Gender:Male
Joined: Jan 05 2004
Posts: 54
Offline

PostPosted: Mon Jan 26, 2004 3:35 pm    Post subject: Reply to topic Reply with quote

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??
Back to top
View users profile Send private message Add User to Ignore List AIM Address MSN Messenger
ExplodyThingy
Server Help Squatter


Age:39
Gender:Gender:Male
Joined: Dec 15 2002
Posts: 528
Location: Washington DC
Offline

PostPosted: Mon Jan 26, 2004 3:36 pm    Post subject: Reply to topic Reply with quote

Its simply a ext character that cant be displayed in your browser or notepad.
Back to top
View users profile Send private message Add User to Ignore List Visit posters website
Cyan~Fire
I'll count you!
I'll count you!


Age:37
Gender:Gender:Male
Joined: Jul 14 2003
Posts: 4608
Location: A Dream
Offline

PostPosted: Mon Jan 26, 2004 5:27 pm    Post subject: Reply to topic Reply with quote

Looks fine for me.
_________________
This help is informational only. No representation is made or warranty given as to its content. User assumes all risk of use. Cyan~Fire assumes no responsibility for any loss or delay resulting from such use.
Wise men STILL seek Him.
Back to top
View users profile Send private message Add User to Ignore List Visit posters website
Display posts from previous:   
Post new topic   Reply to topic    Server Help Forum Index -> General Questions All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum
View online users | View Statistics | View Ignored List


Software by php BB © php BB Group
Server Load: 128 page(s) served in previous 5 minutes.

phpBB Created this page in 0.082984 seconds : 31 queries executed (62.7%): GZIP compression disabled