Hi! I'm new to ICS! I am designing a simple protocol that will be mainly used locally (as a database server backend)..so I'm guessing I could send up to 2GB of stuff without hassle (BLOBs, for example). Right now I'm just experimenting with the facility for two parties to effectively "talk" to each other, even with long long messages, and with binary data transfer. For example, for sending a message, the command is "msg [text]"
A->B: msg hello B->A: msg yo! how's it going? If A is larger than the default buffer size (256 chars) then the A (sender) will warn B in advance, like this: "hey! I'm gonna send you 10000 bytes of text" A->B: longmsg 10000 B->A: ready msg A->B: msg blahblahblah...........blah! In this case, B will be notified of the text size, then when OnClientDataAvailable() event comes, it will malloc a bigger buffer, then Receive(CustomSized_Buffer, SizeHeToldMe). Similarly Im considering the same mechanism to send binary data. But if the file is slightly larger (>10KB) then TWSocket will automatically split it into packets, which I don't want it to do: A->B: upload 1048576 picture.jpg B->A: ready upload A->B: 01001010101010.. (10720 bytes) A->B: 11111010101012.. (10720 bytes) : : A->B: 01001010101010.. (4023 bytes) I really want the sender side to send the 1MB file all at once, since I do the FileWrite() right after Receive().... Could anybody please help me on this issue? Thanks! David -- To unsubscribe or change your settings for TWSocket mailing list please goto http://www.elists.org/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be