由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Java版 - how to multicast objects to clients in java?
相关主题
请问一个serialize class object下载运行的问题这段实例化的代码可以优化提速吗?
How to know the size of a java object ?help! BufferedImage
Object stream & serilization有啥用处?how to copy an Object?
Re: 如何从Datagram Socket里读object如何传递secret key
怎样吧byte[]变成java.security.Key?convert array to blob
[转载] Re: 觉得自己很笨问个Object.hashCode()的问题
How to compute round-trip time to webser这个怎么不对?
为什么大家都要用delimted string穿value呢?要将数据同时生成JSON和XML, 应该先生成哪个,再转换成另一个
相关话题的讨论汇总
话题: objects话题: multicast话题: clients话题: java话题: bytes
进入Java版参与讨论
1 (共1页)
x******g
发帖数: 319
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?
c*****t
发帖数: 1879
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?

m**c
发帖数: 90
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.

x******g
发帖数: 319
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.

f********h
发帖数: 149
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

m******t
发帖数: 2416
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

c*****t
发帖数: 1879
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

x******g
发帖数: 319
8
I just got how to serialize objects.【 在 coconut (coconut) 的大作中提到: 】
1 (共1页)
进入Java版参与讨论
相关主题
要将数据同时生成JSON和XML, 应该先生成哪个,再转换成另一个怎样吧byte[]变成java.security.Key?
Re: 哪里有关于JINI的资料?[转载] Re: 觉得自己很笨
java可以调用dll吗?How to compute round-trip time to webser
anyone use jini?为什么大家都要用delimted string穿value呢?
请问一个serialize class object下载运行的问题这段实例化的代码可以优化提速吗?
How to know the size of a java object ?help! BufferedImage
Object stream & serilization有啥用处?how to copy an Object?
Re: 如何从Datagram Socket里读object如何传递secret key
相关话题的讨论汇总
话题: objects话题: multicast话题: clients话题: java话题: bytes