| To: | REALbasic-Games at lists dot realsoftware dot com (REALbasic Games) |
|---|---|
| Subject: | Re: Net Play |
| From: | support at monkeybreadsoftware dot de (Christian Schmitz) |
| Date: | Mon, 29 Sep 2003 15:49:31 +0200 |
| Comments: | Written on a PowerMac G4 and sent via DSL. |
Joseph J. Strout <joe at realsoftware dot com> wrote: > Another approach I often use is to start each message with a header that > consists of a four-byte identifier (message type), followed by a four-byte > message length. So when I get one of these, I know how many bytes I need > for the message to be complete, and don't need to do any string searching > to find the end-tag. And that's exactly why I made the PacketSocketMBS class for me a long time ago. It also handles an ID with converting endian formats. You can easily write this class yourself if you don't need to use the plugin. (7 KB big) mfg Christian -- Six thousand functions in one REALbasic plug-in. The MBS Plugin. <http://www.monkeybreadsoftware.de/realbasic/plugins.html> --- Unsubscribe or switch delivery mode: <http://support.realsoftware.com/listmanager/> |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: Net Play, Joseph J. Strout |
|---|---|
| Next by Date: | Re: [ANN] Volley, Joseph J. Strout |
| Previous by Thread: | Re: Net Play, Joseph J. Strout |
| Next by Thread: | Re: Net Play, Eric |
| Indexes: | [Date] [Thread] [Top] [All Lists] |