Go Back   ZeroC Forums > Help Center

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
  #1 (permalink)  
Old 07-23-2008
wdp221651 wdp221651 is offline
Registered User
 
Name: Wang Depeng
Organization: northwest university
Project: LAN Massive data transmission
 
Join Date: Jul 2008
Posts: 13
ICE.MessageSizeMax

I use the sequence of bytes of data transmission, when the volume of data in memory to 512 M. limited memory wrong, but I set up the biggest news for the 1 G;

config server:"ICE.MessageSizeMax=1048576"

code:
try
{
char *stri;
long t;
std::vector <char> send;
FILE *stream = NULL;
std::vector<char> strC;
string str;
for(int i=1;i<=51;i++)
{
char st[3];
itoa(i,st,10);
str=st;
const char *str1=str.c_str();
stream = fopen(str1, "rb" );
if( ( stream == NULL) )
printf( "The file was not opened\n" );
else
printf( "The file was opened\n" );

fseek(stream, 0, SEEK_END);
t = ftell(stream);
stri=(char*)malloc(t);

fseek(stream, 0, SEEK_SET);
fread( stri,1,t,stream);

for(long j=0;j<t;j++)
{
send.push_back(stri[j]);
}
}

fclose(stream);
pair<const Ice::Byte*, const Ice::Byte*> byteArr;
const unsigned char *B=(unsigned char*)send._Myfirst;
byteArr.first =B;//
byteArr.second = byteArr.first+send.size();
free(stri);
double end, endm, endsu;
SYSTEMTIME sys;
GetLocalTime( &sys );
end=sys.wMilliseconds;
endm=sys.wSecond;
endsu=endm+end/1000;

for(int num=1; num<=1; num++)
{
proxy->recvByteSeq(endsu, send.size(),num ,byteArr,current.ctx);
}

}
catch(const Exception& ex)
{
cout << ex << endl;
}
1: ICE on the size of the data have limitations ?
2: large of data transmission, whether you have the suggested size.
Reply With Quote
  #2 (permalink)  
Old 07-23-2008
matthew's Avatar
matthew matthew is offline
ZeroC Staff
 
Name: Matthew Newhook
Organization: ZeroC, Inc.
Project: Internet Communications Engine
 
Join Date: Feb 2003
Location: NL, Canada
Posts: 1,027
The property must be set on both the client and the server. It seems from your description that you have not set this in the client application. Also, the name of the property is case sensitive. That is, it is:

Ice.MessageSizeMax

not

ICE.MessageSizeMax
Reply With Quote
  #3 (permalink)  
Old 07-23-2008
bernard's Avatar
bernard bernard is offline
ZeroC Staff
 
Name: Bernard Normier
Organization: ZeroC, Inc.
Project: Ice
 
Join Date: Feb 2003
Location: Palm Beach Gardens, FL
Posts: 768
Also, you may want to read this FAQ entry.

Cheers,
Bernard
__________________
Bernard Normier
ZeroC, Inc.
Reply With Quote
  #4 (permalink)  
Old 07-23-2008
wdp221651 wdp221651 is offline
Registered User
 
Name: Wang Depeng
Organization: northwest university
Project: LAN Massive data transmission
 
Join Date: Jul 2008
Posts: 13
Hi

Quote:
Originally Posted by matthew View Post
The property must be set on both the client and the server. It seems from your description that you have not set this in the client application. Also, the name of the property is case sensitive. That is, it is:

Ice.MessageSizeMax

not

ICE.MessageSizeMax
Thank you!
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
About Ice.MessageSizeMax... die_gestalt Help Center 13 05-27-2008 08:50 AM
"Ice.MessageSizeMax" dosen't work in IceE.1.1.0 c++ qhbo Help Center 5 05-22-2007 11:47 PM
IceStorm and MessageSizeMax jesse@mind.net Help Center 4 04-03-2007 12:40 PM
Ice.MessageSizeMax acbell Help Center 1 11-28-2005 05:01 PM
Ice.MessageSizeMax xdm Help Center 1 09-07-2004 10:17 PM


All times are GMT -4. The time now is 01:03 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0
(c) 2008 ZeroC, Inc.