Search found 26 matches
- 13 Aug 2014, 15:23
- Forum: SFS2X C++ API
- Topic: Error in SmartFox::SetClientDetails
- Replies: 1
- Views: 6569
Error in SmartFox::SetClientDetails
Hi! This is code from SmartFox.cpp: clientDetails = boost::shared_ptr<string>(new string(platformId != NULL ? platformId->replace(platformId->begin(), platformId->end(), CLIENT_TYPE_SEPARATOR, ' ') : "")); *clientDetails += CLIENT_TYPE_SEPARATOR; clientDetails->append(version != NULL ? ver...
- 25 Jul 2014, 08:30
- Forum: SFS2X C++ API
- Topic: Marmalade integration
- Replies: 1
- Views: 5665
Marmalade integration
Hello! I wanna use SFS2X as multiplayer server with my marmalade client, but there is a problem. SFS C++ API uses some boost libraries. Smart pointers are ok, because marmalade has port to ecosystem ( https://github.com/marmalade/boost ). But what about boost.asio and boost.thread? Does anybody have...
- 04 Mar 2013, 21:53
- Forum: SFS2X Questions
- Topic: SocketReader & SocketWriter
- Replies: 10
- Views: 11779
Re: SocketReader & SocketWriter
About 1000 CCU, 8 udp requests per second. So total message rate is about 8000 qps.
Average size of one raw udp packet is about 200 bytes.
We use default compression threshold - 1024 bytes.
And setting from core.xml: maxReadBufferSize=8192.
Average size of one raw udp packet is about 200 bytes.
We use default compression threshold - 1024 bytes.
And setting from core.xml: maxReadBufferSize=8192.
- 04 Mar 2013, 02:16
- Forum: SFS2X Questions
- Topic: SocketReader & SocketWriter
- Replies: 10
- Views: 11779
Re: SocketReader & SocketWriter
Hi,
now we got the same problem - one thread is not able to work with high UDP traffic. Netstat tool displays tens and hundreds kilobytes input traffic. So SFS must be drain data more quickly, but one thread cannot do it.
How we can achieve zero or so KB in Recv-Q?
We use SFS2X 2.5.0.
now we got the same problem - one thread is not able to work with high UDP traffic. Netstat tool displays tens and hundreds kilobytes input traffic. So SFS must be drain data more quickly, but one thread cannot do it.
How we can achieve zero or so KB in Recv-Q?
We use SFS2X 2.5.0.
- 14 Oct 2012, 18:24
- Forum: SFS2X Questions
- Topic: Connections still leaking
- Replies: 11
- Views: 14690
Re: Connections still leaking
You need validate your connection before using. For example, that's piece of my code: private void validateConnection( Connection conn, String validationQuery ) throws SQLException { if ( conn.isClosed() ) { throw new SQLException( "validateConnection: connection closed" ); } if ( validati...
- 04 Oct 2012, 13:25
- Forum: SFS2X C# API
- Topic: Low read/write rate in version 1.0.3
- Replies: 7
- Views: 12525
Low read/write rate in version 1.0.3
Hello! We are developing MMO project using Unity3D and Smarfox. After upgrade Smartfox2.dll from 1.0.1 to 1.0.3 we had found that we can't send and receive more than 100 packets per second. It's a bottle neck for our real-time game. We tested our network with network sniffer - it's ok. We think that...
- 02 Oct 2012, 10:59
- Forum: SFS2X Questions
- Topic: Request processing time
- Replies: 3
- Views: 5738
Re: Request processing time
Exactly.
Now I can only measure time how long my custom handler works. But this value doesn't include time of request reading, time waiting in incoming request queue etc.
Now I can only measure time how long my custom handler works. But this value doesn't include time of request reading, time waiting in incoming request queue etc.
- 02 Oct 2012, 03:32
- Forum: SFS2X Questions
- Topic: Request processing time
- Replies: 3
- Views: 5738
Request processing time
Hello!
How know full request processing time that including request reading and writing time?
How know full request processing time that including request reading and writing time?
- 01 Oct 2012, 11:24
- Forum: SFS2X Questions
- Topic: SocketWriter error
- Replies: 5
- Views: 7888
Re: SocketWriter error
We don't have firewall on our side.
And we can't re-configuring firewalls on client side.
If I understand correctly, we cannot use udp in this widely spread situation. And we should use tcp.
And we can't re-configuring firewalls on client side.
If I understand correctly, we cannot use udp in this widely spread situation. And we should use tcp.
- 30 Sep 2012, 17:49
- Forum: SFS2X Questions
- Topic: SocketWriter error
- Replies: 5
- Views: 7888
Re: SocketWriter error
Of course we are already check it. And for most users it works.
But for some users (As I wrote above) such messages occurs in large number.
But for some users (As I wrote above) such messages occurs in large number.
- 30 Sep 2012, 07:08
- Forum: SFS2X Questions
- Topic: SocketWriter error
- Replies: 5
- Views: 7888
SocketWriter error
Hello! We are use latest SFS version - 2.3.0. For some clients I find this trace in log files ( there are THOUSANDS such messages). Why DatagramChannel wasn't set? WARN | SocketWriter-1 | bitswarm.core.SocketWriter | | Error during write. Session: { Id: 241, Type: DEFAULT, Logged: Yes, IP: 91.215.23...
- 05 Jun 2012, 19:42
- Forum: SFS2X ActionScript 3 API
- Topic: number of users in a zone
- Replies: 3
- Views: 8011
Re: number of users in a zone
Hello!
Please advise me what is a better way: create client request handler or generate xml file for embedded Jetty container with http access?
Please advise me what is a better way: create client request handler or generate xml file for embedded Jetty container with http access?
- 05 Jun 2012, 06:25
- Forum: SFS2X Questions
- Topic: UDP Packets getting discarded
- Replies: 7
- Views: 11347
Re: UDP Packets getting discarded
Hello!
2) See similar topic some time ago http://www.smartfoxserver.com/forums/viewtopic.php?f=18&t=11475&hilit=Sender+UDP+Port+doesn%27t+match+current+session+port
2) See similar topic some time ago http://www.smartfoxserver.com/forums/viewtopic.php?f=18&t=11475&hilit=Sender+UDP+Port+doesn%27t+match+current+session+port
- 04 Jun 2012, 19:40
- Forum: SFS2X Questions
- Topic: Room remove mode
- Replies: 2
- Views: 5023
Re: Room remove mode
Thanks.
- 04 Jun 2012, 06:40
- Forum: SFS2X Questions
- Topic: Room remove mode
- Replies: 2
- Views: 5023
Room remove mode
Hello! I set room remove mode as NEVER using room guide (http://docs2x.smartfoxserver.com/DevelopmentBasics/room-architecture, "Auto-remove mode" section). On server startup: 04 ╨╕╤О╨╜ 2012 | 13:31:17,253 | ERROR | main | smartfoxserver.v2.SmartFoxServer | | :::::::::::::::::::::::::::::::...