Redian新闻
>
how to multicast objects to clients in java?
avatar
how to multicast objects to clients in java?# Java - 爪哇娇娃
x*g
1
how to multicast objects to clients in java?
if just use socket, i also need to write a server.
multicastsocket sounds easy.
any suggestions?
avatar
c*t
2
java.net.MulticastSocket javadoc has the tutorial for how to use it.
It really depends whether or not to use it. If you are writing a
LAN game or query flooding, then it is faster. Otherwise, I don't
see why you should use it.

【在 x******g 的大作中提到】
: how to multicast objects to clients in java?
: if just use socket, i also need to write a server.
: multicastsocket sounds easy.
: any suggestions?

avatar
m*c
3

Check out the open-source project called "javagroups". We used it to
implement our own cluster environment.

【在 c*****t 的大作中提到】
: java.net.MulticastSocket javadoc has the tutorial for how to use it.
: It really depends whether or not to use it. If you are writing a
: LAN game or query flooding, then it is faster. Otherwise, I don't
: see why you should use it.

avatar
x*g
4
the thing is how to multicast objects?
sample only told me to multicast string, char...
thanks

【在 c*****t 的大作中提到】
: java.net.MulticastSocket javadoc has the tutorial for how to use it.
: It really depends whether or not to use it. If you are writing a
: LAN game or query flooding, then it is faster. Otherwise, I don't
: see why you should use it.

avatar
f*h
5
you need to build your own protocol using rmi.

【在 x******g 的大作中提到】
: the thing is how to multicast objects?
: sample only told me to multicast string, char...
: thanks

avatar
m*t
6
Would JINI happen to be what you are looking for?

【在 x******g 的大作中提到】
: the thing is how to multicast objects?
: sample only told me to multicast string, char...
: thanks

avatar
c*t
7
ffdt.
Read the sample again. It first converts a string into bytes, then
put these bytes into datagram packet and then send it out.
What you can do to send objects is to first serialize the objects
into bytes, then put the bytes into datagram...

【在 x******g 的大作中提到】
: the thing is how to multicast objects?
: sample only told me to multicast string, char...
: thanks

avatar
x*g
8
I just got how to serialize objects.【 在 coconut (coconut) 的大作中提到: 】
相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。