Search found 9 matches

by DaVajj
Fri May 05, 2006 1:11 am
Forum: PSP Development
Topic: select()
Replies: 11
Views: 4348

Doesn't the psptoolchain script grab the newest stuff from the SVN and install it all?

Edit: Else, how do i go about getting and installing the latest newlib? (Running a native linux envoirment, also got svn)
by DaVajj
Thu May 04, 2006 11:24 pm
Forum: PSP Development
Topic: select()
Replies: 11
Views: 4348

Thanks for the quick response, i'm really eager to get this thing working. Well, i pass a zeroed timer just because i don't want wait-time at all, i just want to poll the socket. All my connections are of class CSocket, and on each main loop i call update() on them causing the socket to read in all ...
by DaVajj
Thu May 04, 2006 10:22 pm
Forum: PSP Development
Topic: select()
Replies: 11
Views: 4348

Now why is this code not working as it is supposed to? itsSocketID is a listening socket. And when i run this, the socket is set all the time, even when there's not an incoming connection available. And then my programs just gets stuck on the accept() call. By the way, i figured it isn't a good thin...
by DaVajj
Fri Apr 28, 2006 2:43 am
Forum: PSP Development
Topic: select()
Replies: 11
Views: 4348

So. mySocket = create_socket() //just pseudo function giving me a socket fd_set mySet; FD_SET( mySocket, &mySet ); FD_ISSET( mySocket, &mySet ); //This would return false I come to this conclusion through observing the net/simple example from t...
by DaVajj
Mon Apr 24, 2006 5:38 am
Forum: PSP Development
Topic: select()
Replies: 11
Views: 4348

That constant had me thinking a while. I saw it in a sample, and just as they do i pass FD_SETSIZE to select(). "Hmm are sockets not always writable unless the buffer fills up, therefore specifying a write set will only make it return immediately? " Yeah. But if there's an incoming connect...
by DaVajj
Sun Apr 23, 2006 11:23 pm
Forum: PSP Development
Topic: select()
Replies: 11
Views: 4348

select()

The network select() command implemented through the PSPSDK, does it support everything the normal network select() does? Cause i've had problems with passing a timer crashing my PSP, and passing a set of sockets to check for write makes it return immediatly (the sockets are usually writable, so i k...
by DaVajj
Wed Apr 19, 2006 6:16 am
Forum: PSP Development
Topic: C++ on PSP
Replies: 5
Views: 2073

Oh, right, forgot the parenthesis there. Was just quickly throwing it all together. Thanks a lot! Edit: Wait a minute. Do you really have to have the parenthesis there? The constructor doesn't take any arguments. To create a standard C++ string on the heap you just do this right? new std:&am...
by DaVajj
Wed Apr 19, 2006 3:05 am
Forum: PSP Development
Topic: C++ on PSP
Replies: 5
Views: 2073

First of, thanks for your reply. Second: I did search. For "new c++" (without "") and "new", but no results. But iIguess I didn't search enough >_<. (Since i've already started a whole new thread for this, why not keep using it:) Which library is the "C++ library&q...
by DaVajj
Wed Apr 19, 2006 12:47 am
Forum: PSP Development
Topic: C++ on PSP
Replies: 5
Views: 2073

C++ on PSP

I've just recently managed to successfully run the toolchain script and begun programming for the PSP, although most examples for the PSP is in C. I tried creating a class and that worked, but when i was gonna do a singleton class for pad-input i got a link error on the 'new' keyword. CPad.o&#58...