datagram

Datagram Transport Layer Security (DTLS) on Android/Java

醉酒当歌 提交于 2021-02-18 02:06:10
问题 Has anyone used DTLS on Android or is there an open source Java implementation that supports DTLS? What are my other options for securing UDP traffic on Android? 回答1: DTLS support is not available in pure Java yet. We ended up using OpenSSL through JNI. I doubt you will find anything on Android. You should use TLS (which means you have to use TCP). 回答2: wolfSSL recently created an open source JNI wrapper around the lightweight SSL/TLS library, CyaSSL. The wrapper supports both DTLS 1.0 and

Datagram Transport Layer Security (DTLS) on Android/Java

只谈情不闲聊 提交于 2021-02-18 02:03:08
问题 Has anyone used DTLS on Android or is there an open source Java implementation that supports DTLS? What are my other options for securing UDP traffic on Android? 回答1: DTLS support is not available in pure Java yet. We ended up using OpenSSL through JNI. I doubt you will find anything on Android. You should use TLS (which means you have to use TCP). 回答2: wolfSSL recently created an open source JNI wrapper around the lightweight SSL/TLS library, CyaSSL. The wrapper supports both DTLS 1.0 and

Datagram Transport Layer Security (DTLS) on Android/Java

我的梦境 提交于 2021-02-18 02:01:34
问题 Has anyone used DTLS on Android or is there an open source Java implementation that supports DTLS? What are my other options for securing UDP traffic on Android? 回答1: DTLS support is not available in pure Java yet. We ended up using OpenSSL through JNI. I doubt you will find anything on Android. You should use TLS (which means you have to use TCP). 回答2: wolfSSL recently created an open source JNI wrapper around the lightweight SSL/TLS library, CyaSSL. The wrapper supports both DTLS 1.0 and

Datagram Transport Layer Security (DTLS) on Android/Java

◇◆丶佛笑我妖孽 提交于 2021-02-18 02:01:12
问题 Has anyone used DTLS on Android or is there an open source Java implementation that supports DTLS? What are my other options for securing UDP traffic on Android? 回答1: DTLS support is not available in pure Java yet. We ended up using OpenSSL through JNI. I doubt you will find anything on Android. You should use TLS (which means you have to use TCP). 回答2: wolfSSL recently created an open source JNI wrapper around the lightweight SSL/TLS library, CyaSSL. The wrapper supports both DTLS 1.0 and

Datagram Transport Layer Security (DTLS) on Android/Java

∥☆過路亽.° 提交于 2021-02-18 02:00:58
问题 Has anyone used DTLS on Android or is there an open source Java implementation that supports DTLS? What are my other options for securing UDP traffic on Android? 回答1: DTLS support is not available in pure Java yet. We ended up using OpenSSL through JNI. I doubt you will find anything on Android. You should use TLS (which means you have to use TCP). 回答2: wolfSSL recently created an open source JNI wrapper around the lightweight SSL/TLS library, CyaSSL. The wrapper supports both DTLS 1.0 and

Should I reuse DatagramPacket?

三世轮回 提交于 2021-01-27 17:00:27
问题 I am building a UDP-based application that receives and sends multiple packets. I could build a new DatagramPacket for each send, or I recycle one instance for the life of my application. Are there any advantages to reusing a DatagramPacket ? (e.g. memory-allocation) Are there any potential problems? (e.g. thread-safety) 回答1: It looks like you can't. I just tried sending the same DatagramPacket twice and I get the following behavior: The packet is sent only once Netty logs the warning below

Using DatagramSocket and python socket with devices connected to hotspot

非 Y 不嫁゛ 提交于 2020-05-12 08:29:47
问题 I have an Android app written using the DatagramSocket library, and Python server on my laptop written using the socket library. They both communicate with each other. When the Android phone and laptop are connected to my home internet it works fine. Standard out-of-the-box router setup. However, when I connect the phone and laptop to a mobile hotspot it won't work. I need this functionality for a demonstration in college, as the college wifi doesn't work either. Any suggestions what's

UDP - Read data from the queue in chunks

我与影子孤独终老i 提交于 2020-01-23 13:16:29
问题 I'm implementing a small application using UDP (in C). A server sends to a client the data from a given file in chunks of given amount (ex. 100 bytes / call). The client downloads the file and saves it somewhere. The catch is that the client can receive a parameter saying how many bytes to read / call. My problem is when the server sends 100 bytes / call, and the client is set to read only 15 bytes / call. The other 85 bytes are lost, because the message is removed from the UDP queue. Is

What is the 'wildcard address' In the context of UDP Broadcasts?

假如想象 提交于 2020-01-03 02:04:56
问题 Referring to the Java 6 API docs for the DatagramSocket class: UDP broadcasts sends are always enabled on a DatagramSocket. In order to receive broadcast packets a DatagramSocket should be bound to the wildcard address . In some implementations, broadcast packets may also be received when a DatagramSocket is bound to a more specific address. Could someone tell me what the 'wildcard address' is? And is the following valid for listening for UDP broadcasts: MulticastSocket socket = new

How to get rid of the empty remaining of the buffer?

允我心安 提交于 2019-12-30 05:21:04
问题 I have a server-client application that is using a datagram socket to exchange messages. I have initially set the buffer size to be 1024 bytes because I dont know the length of the messages. When I send something that is shorter than 1024 bytes I get the rest of my string displayed as some weird characters (null characters or I am not sure how they are called). Here is a screen: Client code: byte[] buf = ("This is another packet.\n").getBytes(); DatagramPacket packet = new DatagramPacket(buf,