About Store Forum Documentation Contact
Donations:
309$/mo



Post Reply 
Server
Author Message
Semmy13 Offline
Member

Post: #1
Server
Hi guys,
reading the roadmap I've seen that there's a way to start a server without GPU support.
Can I do the same thing using the SDK ?
Thanks for the replies
05-03-2011 07:01 PM
Find all posts by this user Quote this message in a reply
Esenthel Online
Administrator

Post: #2
RE: Server
yes, once next SDK will be released there will be an option to do so
05-03-2011 07:20 PM
Find all posts by this user Quote this message in a reply
Semmy13 Offline
Member

Post: #3
RE: Server
A really good news. Thanks grin
05-03-2011 07:25 PM
Find all posts by this user Quote this message in a reply
Semmy13 Offline
Member

Post: #4
RE: Server
I have a problem tryng to send a string over a network connection. After sending a std::wstring longer more than 5 o 6 chars I receive some Japan chars in the client :O
05-04-2011 02:41 PM
Find all posts by this user Quote this message in a reply
Dynad Offline
Member

Post: #5
RE: Server
You need to send char instead smile

There is always evil somewhere, you just have to look for it properly.
05-04-2011 02:51 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Esenthel Online
Administrator

Post: #6
RE: Server
check tutorial "net/connection server"
05-04-2011 03:10 PM
Find all posts by this user Quote this message in a reply
Semmy13 Offline
Member

Post: #7
RE: Server
My string is into a struct:
PHP Code:
extern struct server_data {
    
std::wstring ip;
    
int port;
srvData

And here I use the function:
PHP Code:
connection.dataFull(&srvDatasizeof(server_data), true); 
05-04-2011 03:19 PM
Find all posts by this user Quote this message in a reply
Esenthel Online
Administrator

Post: #8
RE: Server
check tutorial "net/connection server"
you need to use File::putStr
use Str instead of std::wstring
05-04-2011 04:36 PM
Find all posts by this user Quote this message in a reply
Semmy13 Offline
Member

Post: #9
RE: Server
I ask you sorry but I can't make it work.
I have to send some structs and I've Str and other values inside them.
When I try to send the entire structure using
PHP Code:
connection.dataFull( & <struct_name>, sizeof(<struct_name>), true); 
the server receive all the data except for Str who result as Bad Ptr.

I can't do
PHP Code:
f.putStr(Str); 
like the net/client example because I have to send:
PHP Code:
struct TempMsg
    
{
        
MsgHeader head;
        
MsgLogin log;
    } 
msg

where MsgHeader and MsgLogin are the following structs:
PHP Code:
struct MsgHeader
{
    
Str name;                            // Character name
    
int hash;                            // Session hash
    
int modelID;                        // ID del modello
    
UInt flag;                            // Flag for following packages
    
UInt aux;                            // Auxiliare counter for packages
};


struct MsgLogin
{
    
Str username;                        // Username
    
Str password;                        // Password
}; 

[Edit] Solved on my own. I've decided to use wchar_t[20] on my struct so I can send it without problems.
(This post was last modified: 05-10-2011 10:16 AM by Semmy13.)
05-09-2011 11:01 PM
Find all posts by this user Quote this message in a reply
Post Reply