forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

TCP Sockt OLD DATA in recv buf nevr clears [SLVD?]
Goto page Previous  1, 2
 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development
View previous topic :: View next topic  
Author Message
KickinAezz



Joined: 03 Jun 2007
Posts: 328

PostPosted: Tue Aug 12, 2008 11:10 pm    Post subject: Reply with quote

pspZorba wrote:
for TCP_NODELAY =>
#include <netinet/tcp.h>


About the delay what range of values did you try?


Seems like TCP_NODELAY is the one that did the trick.
Disabled it; It occasionally lagged waiting for data.





Here's the updated one to try:
http://www.sendspace.com/file/d7e2mq


Would anyone mind dissecting sceInetRecv Kindly? Where does it read from?
[We could perhaps find the hardware address of wifi buffer and clean it out]

_________________
Intrigued by PSP system Since December 2006.
Use it more for Development than for Gaming.
Back to top
View user's profile Send private message
SANiK



Joined: 05 Jul 2005
Posts: 29

PostPosted: Wed Aug 13, 2008 12:51 am    Post subject: Reply with quote

From what you say, I guess that, what you see there is NAGLE-ING

You can't get rid of it because it's not up to you but it's up to the sender of the data if they want nagle-ing or not.

The only thing you can do is to write a system that processes each packet and takes out the most up to date information.

BUT, if you do recv() and then do recv() again and then you see the same data and one new data piece - then that's something else
Back to top
View user's profile Send private message
KickinAezz



Joined: 03 Jun 2007
Posts: 328

PostPosted: Wed Aug 13, 2008 1:18 am    Post subject: Reply with quote

SANiK wrote:
From what you say, I guess that, what you see there is NAGLE-ING

You can't get rid of it because it's not up to you but it's up to the sender of the data if they want nagle-ing or not.

The only thing you can do is to write a system that processes each packet and takes out the most up to date information.

BUT, if you do recv() and then do recv() again and then you see the same data and one new data piece - then that's something else



Yepp.

Now I need to focus on OpenXDK side and optimize the tcp stack once I finalize my other project.
_________________
Intrigued by PSP system Since December 2006.
Use it more for Development than for Gaming.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development All times are GMT + 10 Hours
Goto page Previous  1, 2
Page 2 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot 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


Powered by phpBB © 2001, 2005 phpBB Group