|
-
Aug 18th, 2005, 04:23 AM
#1
Thread Starter
Frenzied Member
[RESOLVED] Network Performance, .Send or .BeginSend
I have a networking program, that often sends very large tables of data from the server to the client.. when i recently tested it, it ran very slow..
i am currently using .send with the tcp client, and .write with the stream.
would it run faster using async sends .BeginWrite ? and would it possibly come back in muddled up order? should i perhaps use two sockets, or would this just make them both go half the speed and have no benefit?
any suggestions how this could go faster? (UDP is not an option)
-
Aug 18th, 2005, 08:53 AM
#2
Thread Starter
Frenzied Member
Re: Network Performance, .Send or .BeginSend
Well, i've tried ASync and it made no difference at all...
trying a few minor things and then the multi-port idea, unless anybody can tell me this wont help? or has a better way?
-
Aug 18th, 2005, 10:09 AM
#3
Thread Starter
Frenzied Member
Re: Network Performance, .Send or .BeginSend
SOLVED
for anyone else having this issue
I achieved speed by letting the messages "bulk up" in an array of messages to be sent, and then send the whole lot at once, so less larger messages rather than many small messages. I wasnt sure this was the correct thing to do at first.. but it worked, so i suppose it would be due to the stream only needing to process and package the message once instead of many times, even though the messages are larger.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|