Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / transmitting a file through a string using memblocks?

Author
Message
sovr
14
Years of Service
User Offline
Joined: 2nd Jan 2010
Location: USA
Posted: 23rd Sep 2014 22:46
Hello everyone. I have a question about finding a way to transmit a file over multiplayer commands. Since you can convert a file to a memblock to a string, could I send that string through a network message then convert that string to a memblock back to a file on the other side? Or is there a better way to do this? Thanks in advance!

website: http://worksimpleintelligen.wix.com/parkers-apps
facebook: https://www.facebook.com/ParkersApps
youtube: http://www.youtube.com/user/mrsovr
Markus
Valued Member
20
Years of Service
User Offline
Joined: 10th Apr 2004
Location: Germany
Posted: 24th Sep 2014 01:52
hmm i would use
GetFileSize
ReadInteger/ReadByte
CreateNetworkMessage
AddNetworkMessageString "File"
AddNetworkMessageInteger Len
AddNetworkMessageInteger Data
SendNetworkMessage
WriteInteger/WriteByte
...

AGK 108 (B)19 : Windows 8.1 Pro 64 Bit : AMD Radeon R7 265

Login to post a reply

Server time is: 2024-05-11 04:30:15
Your offset time is: 2024-05-11 04:30:15