[ENet-discuss] A query about channels

Jay Sprenkle jsprenkle at gmail.com
Sun Jan 17 12:50:20 PST 2010


A great way to do this. There are plenty of other ways. Just identify the
data in any way you like so you can classify it on the receiver.

2010/1/17 Thorbjørn Lindeijer <bjorn at lindeijer.nl>

> On Sun, Jan 17, 2010 at 19:50, Alex Milstead <alex.milstead at gatech.edu>
> wrote:
> > Also, Jay you mentioned earlier that it was easy to do simple data-type
> > checking on the receiving end. I'm a bit of a fledgling network
> programmer
> > -- I'm still definitely becoming more acquainted the vast amount of
> > unfamiliar programming techniques in this particular arena. The only
> > surefire type-checking system I know about in programming is in java
> (=/),
> > with it's "instanceof" operator. As far as I know this type of mechanism,
> or
> > anything similar, doesn't really exist in C/C++. So my next question is,
> if
> > we're sending binary data along and receiving it as binary data, what's
> the
> > most efficient way of type-checking the probable struct being piped
> through?
>
> You give it a number which designates its type. You'd usually prepend
> such a number to each of your messages, so that you know how to
> interpret them on the other end.
>
>
Cause united breaks guitars
http://www.youtube.com/watch?v=5YGc4zOqozo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cubik.org/pipermail/enet-discuss/attachments/20100117/18ddc4ff/attachment.htm>


More information about the ENet-discuss mailing list