We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7616104 commit ad2e898Copy full SHA for ad2e898
common/src/main/java/com/pedro/common/socket/java/UdpStreamSocketJava.kt
@@ -12,7 +12,7 @@ class UdpStreamSocketJava(
12
private val host: String,
13
private val port: Int,
14
private val sourcePort: Int? = null,
15
- private val receiveSize: Int? = null,
+ receiveSize: Int? = null,
16
private val type: UdpType = UdpType.UNICAST
17
): UdpStreamSocket() {
18
@@ -34,6 +34,7 @@ class UdpStreamSocketJava(
34
}
35
val address = InetAddress.getByName(host)
36
socket.connect(address, port)
37
+ socket.receiveBufferSize = packetSize
38
socket.soTimeout = timeout.toInt()
39
this.socket = socket
40
0 commit comments