20-04-2012 11:25 AM - edited 20-04-2012 11:33 AM
Hello,
I tryed to send a few char on a thread to a server, I am able to have 10 send /second in simulator but only 5 / second on the psvita ? it sems that I can not send more than 5 time /seconde on the vita ?
static System.Net.Sockets.TcpClient clientSocket;
static NetworkStream serverStream;
private static volatile bool _shouldStop;
static Thread t;
static byte[] outStream;
public static bool Init()
{
graphics = new GraphicsContext();
SampleDraw.Init(graphics);
t = new Thread(new ThreadStart(DoWork));
t.Start();
return true;
}
public static void DoWork()
{
clientSocket = new System.Net.Sockets.TcpClient();
clientSocket.Connect("192.168.1.12", 8888);
serverStream = clientSocket.GetStream();
outStream = System.Text.Encoding.ASCII.GetBytes("Message from Client$");
while (!_shouldStop)
{
serverStream.Write(outStream, 0, outStream.Length);
serverStream.Flush();
System.Threading.Thread.Sleep(100);// on vita it is 500ms whatever the value I put. simulator is ok i tryed up to 10ms
}
}
on 23-04-2012 05:00 PM
on 23-05-2012 05:22 PM
PSM Developer Registration (for free) on PSM DevPortal is required to post on the forum.
Please sign out then sign in again to the forum and PSM DevPortal after you have completed the registration.
フォーラムへ投稿をするにはPSM DevPortalへの登録(無料)が必要です。
登録後はフォーラムと
PSM DevPortalを一度ログアウトし、再度ログインしてください。


Website ©2013 Sony Computer Entertainment Europe
All content, game titles, trade names and/or trade dress, trademarks, artwork and associated imagery are trademarks and/or copyright material of their respective owners. All rights reserved. [more info]
%%http://community.eu.playstation.com/t5/Announcements/Beta-Trial-Information/td-p/11386362
best_shooter.png%%http://community.eu.playstation.com/t5/Announcements/Introducing-Best-of-PlayStation/td-p/13741979
best_driver.png%%http://community.eu.playstation.com/t5/Announcements/Introducing-Best-of-PlayStation/td-p/13741979
best_performer.png%%http://community.eu.playstation.com/t5/Announcements/Introducing-Best-of-PlayStation/td-p/13741979
best_footballer.png%%http://community.eu.playstation.com/t5/Announcements/Introducing-Best-of-PlayStation/td-p/13741979
best_fighter.png%%http://community.eu.playstation.com/t5/Announcements/Introducing-Best-of-PlayStation/td-p/13741979
best_creator.png%%http://community.eu.playstation.com/t5/Announcements/Introducing-Best-of-PlayStation/td-p/13741979
best_action_player.png%%http://community.eu.playstation.com/t5/Announcements/Introducing-Best-of-PlayStation/td-p/13741979
dev2.png%%http://community.eu.playstation.com/t5/Website-and-Forum-Help-Feedback/Producer-and-Developer-Ranks/td-p/18407352
trophy.gif%%http://community.eu.playstation.com/t5/Website-and-Forum-Help-Feedback/The-Community-Awards-FAQ/td-p/18407096
PSlogoSM.png%%http://community.eu.playstation.com/t5/Website-and-Forum-Help-Feedback/Online-Support-Coordinator-rank/td-p/18414870