المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : Sending mutliple messages to a sock with mutliple return messages



C# Programming
06-23-2009, 07:50 PM
I am developing a new part to a program I work on. It connects to a java process via a socket. At the moment, the user will send a message down the socket, and the Java process will return with 1 or more values. This works fine.

I'd like to extend the program, so that the user could send multiple messages (sometimes 10k), thus I get into the problem of spamming the socket, and the Java process having to then reply to each message, which could return multiple messages (10 for each sometimes).

Does anyone have any good ideas of how I'd make this process better? and more importantly, faster!

Regards,
Gareth.

(FKA gareth111)