BBS水木清华站∶精华区

发信人: ft (甜甜甜), 信区: Java 
标  题: Re: JAVA中怎么进行类型转换? 
发信站: BBS 水木清华站 (Tue Apr 13 23:39:54 1999) WWW-POST 
 
I am not sure if you have to use UDP packet. 
I think it will be much more convenient to use TCP/IP stream. 
There is no need to make such conversion. 
 
【 在 jimh (傻茄子) 的大作中提到: 】 
 说实际点吧,我用DatagramSocket将一个这样的结构: 
 class ClientInfo 
 { 
    String Name; 
    InetAddress Address; 
    int Port; 
    public ClientInfo( String N, InetAddress Addr, int port ) 
    { 
     Name = N; 
     Address = Addr; 
     Port = port; 
    } 
   } 
 传到client方,但是怎么把它还原呢? 
 
 
-- 
 
你的眼睛,是那么美丽, 就象喜马拉雅山上的圣湖。 
 
※ 修改:·ft 於 Apr 13 23:39:54 修改本文·[FROM: 202.112.78.253]  
※ 来源:·BBS 水木清华站 bbs.net.tsinghua.edu.cn·[FROM: 202.112.78.253]  

BBS水木清华站∶精华区