Mercurial > hg > Members > kono > WifiBroadcast
comparison src/wifibroadcast/WifiDatagram.java @ 6:248ae478dbe6
cleanup
author | one |
---|---|
date | Sat, 28 Jul 2012 19:53:35 +0900 |
parents | 404778ac3f55 |
children | 95d58cc5bb0b |
comparison
equal
deleted
inserted
replaced
5:7679d10bdae9 | 6:248ae478dbe6 |
---|---|
1 package wifibroadcast; | 1 package wifibroadcast; |
2 | 2 |
3 import java.net.NetworkInterface; | |
4 import java.io.IOException; | 3 import java.io.IOException; |
5 import java.net.DatagramPacket; | 4 import java.net.DatagramPacket; |
6 import java.net.DatagramSocket; | 5 import java.net.DatagramSocket; |
7 import java.net.InetAddress; | 6 import java.net.InetAddress; |
8 import java.net.InetSocketAddress; | 7 import java.net.InetSocketAddress; |
9 import java.net.InterfaceAddress; | |
10 import java.net.SocketException; | 8 import java.net.SocketException; |
11 import java.net.UnknownHostException; | 9 import java.net.UnknownHostException; |
12 import java.nio.ByteBuffer; | 10 import java.nio.ByteBuffer; |
13 import java.util.Enumeration; | |
14 | 11 |
15 public class WifiDatagram implements WifiReceiver { | 12 public class WifiDatagram implements WifiReceiver { |
16 | 13 |
17 private DatagramSocket s; | 14 private DatagramSocket s; |
18 private int port; | 15 private int port; |