equal
deleted
inserted
replaced
16 * You should have received a copy of the GNU General Public License |
16 * You should have received a copy of the GNU General Public License |
17 * along with this source code; if not, write to the Free Software |
17 * along with this source code; if not, write to the Free Software |
18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
19 */ |
19 */ |
20 |
20 |
21 package org.sipdroid.net; |
21 package src.org.sipdroid.net; |
22 |
22 |
23 import java.io.IOException; |
23 import java.io.IOException; |
24 import java.net.DatagramPacket; |
24 import java.net.DatagramPacket; |
25 import java.net.DatagramSocket; |
25 import java.net.DatagramSocket; |
26 import java.net.InetAddress; |
26 import java.net.InetAddress; |
77 public void connect(InetAddress addr,int port) { |
77 public void connect(InetAddress addr,int port) { |
78 if (!loaded) super.connect(addr,port); |
78 if (!loaded) super.connect(addr,port); |
79 } |
79 } |
80 |
80 |
81 static { |
81 static { |
|
82 try { |
82 System.loadLibrary("OSNetworkSystem"); |
83 System.loadLibrary("OSNetworkSystem"); |
83 OSNetworkSystem.getOSNetworkSystem().oneTimeInitialization(true); |
84 OSNetworkSystem.getOSNetworkSystem().oneTimeInitialization(true); |
84 SipdroidSocket.loaded = true; |
85 SipdroidSocket.loaded = true; |
|
86 } catch (Throwable e) { |
|
87 } |
85 } |
88 } |
86 } |
89 } |