udp

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

UDP messages from C++ are not received by Rust

余生颓废 提交于 2021-02-17 04:48:15
问题 I'm creating a server / client paradigm using UDP, but the Rust server is not receiving the C++ client messages. I have been able to successfully do Rust server / Rust client and C++ server / Rust client communication. This leads me to believe that there is an issue with my C++ code, or there is some type of miscommunication when sending C++ buffers to Rust, but I have used code that I beleive works. This is only being sent from and to the same computer and has not been expanded to computer

Java SQL Select statement using several variables in WHERE clause

孤人 提交于 2021-02-11 09:17:11
问题 I am writing a simple program using UDP Sockets.I need to input the name of a patient and retrieve its details from the database. The name of the patient is entered in the Doctor class and sent to the Server Class. The Server class then execute a query to retrieve the details of the patient. The problem is in the SQL statement. When I used only the variable firstname it is working fine, but when I put the second variable lastname the PatientRecord variable is NULL. The Server Class : public

.Net UDP packet loss though all packets arrive (Wireshark) - ReceiveBuffer not the issue

橙三吉。 提交于 2021-02-10 19:44:18
问题 This is the same question as C# UDP packetloss though all packets arrive (WireShark), except I do set ReceiverBuffer to 10MB, and I also monitor Socket.Available which shows the buffer doesn't even reach 200k utilization. In a simple test case, sending the same small (multicast) UDP packet (net data size: 137) 25,000 times using tcpreplay with at rate of 40Mbps, oftentimes not all packets arrive in my program, although all packets arrive in Wireshark, which I run at the same time on that box.

Does the server Firewall which allows Outgoing traffic on Port 80/TCP also allow on Port 80/UDP?

邮差的信 提交于 2021-02-10 18:32:50
问题 Is the Windows Firewall which accept outgoing traffic on port 80/TCP allow outgoing traffic also when we use UDP protocol. Does a Firewall in most cases control the port number only or controls the used Protocol also ? 回答1: TCP and UDP ports are entirely different from each other. So, TCP/80 has nothing to do with UDP/80, except for the number. From a firewall's perspective, they are entirely separate things with separate rules. 来源: https://stackoverflow.com/questions/9280136/does-the-server

I cannot make UDP Ports work on a Windows Azure Virtual Machine

心不动则不痛 提交于 2021-02-10 15:53:22
问题 I cannot receive a UDP packet on a Windows Azure Virtual Machine. I have done the following: On the Virtual Machine, via Windows Firewall, I opened up Port 1234* both Inbound and Outbound for both UDP and TCP protocols. I did not add any IP exclusions. The rule should apply to Domain, Private and Public profiles. I am allowing Block Edge Traversal. In the Azure Management Portal, I added Endpoints for my Virtual Machine instance. I added both UDP and TCP protocol endpoints. Public and Private

What is the predictable behavior of changing SOL_SOCKET, SO_RCVBUF on the fly on a UDP socket?

爱⌒轻易说出口 提交于 2021-02-10 15:35:42
问题 What should be expected to happen if we resize the input buffer of a UDP server socket on the fly on a Linux system? setsockopt(sock, SOL_SOCKET, SO_RCVBUF, ...) I am particularly interested in these questions: If I shrink below what is currently in the buffer, would this simply drop the oldest/newest? datagrams properly, or could it flush everything that's there, or worse could it corrupt data such as truncating a datagram? Would shrinking the buffer even save memory or something prevents

Dealing with sendto failure for UDP socket

こ雲淡風輕ζ 提交于 2021-02-10 14:16:42
问题 If sendto fails according to the manpage "On success, these calls return the number of characters sent. On error, -1 is returned, and errno is set appropriately." I know that with TCP that is definately the case and you should really attempt to send the remaining data as pointed out in Beej's guide to network programming. However, partially sending a UDP packet makes no sense to me, and this comment seems to imply it. If the message is too long to pass atomically through the underlying

Dealing with sendto failure for UDP socket

回眸只為那壹抹淺笑 提交于 2021-02-10 14:16:28
问题 If sendto fails according to the manpage "On success, these calls return the number of characters sent. On error, -1 is returned, and errno is set appropriately." I know that with TCP that is definately the case and you should really attempt to send the remaining data as pointed out in Beej's guide to network programming. However, partially sending a UDP packet makes no sense to me, and this comment seems to imply it. If the message is too long to pass atomically through the underlying