摘要:
package Socket;
import java.net.DatagramPacket;
import java.net.InetAddress;
public class Dgram {
public static DatagramPacket toDatagram(String s, InetAddress destIA,
int destPort) {
byte[] buf = new byte[s.length() + 1];
s.getBytes(0, s.length(), buf, 0);
阅读全文
posted @ 2014-06-15 12:04
上校
阅读(32641)
推荐(2)
编辑
摘要:
Dgram类
package Socket;
import java.net.DatagramPacket;
import java.net.InetAddress;
public class Dgram {
public static DatagramPacket toDatagram(String s, InetAddress destIA,
int destPort) {
阅读全文
posted @ 2014-06-15 11:58
上校
阅读(6062)
推荐(0)
编辑