Skip to content

Commit

Permalink
automatic commit at releng box
Browse files Browse the repository at this point in the history
  • Loading branch information
mc36 committed Dec 30, 2024
1 parent 087069d commit d126617
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 11 deletions.
22 changes: 15 additions & 7 deletions misc/player/receiver.java
Original file line number Diff line number Diff line change
@@ -1,26 +1,34 @@

import java.net.DatagramPacket;
import java.net.InetAddress;
import java.net.InetSocketAddress;
import java.net.MulticastSocket;
import java.nio.ByteBuffer;
import java.nio.channels.DatagramChannel;
import javax.sound.sampled.AudioFormat;
import javax.sound.sampled.AudioSystem;
import javax.sound.sampled.SourceDataLine;

public class receiver {

public static void main(String[] args) throws Exception {
InetAddress group = InetAddress.getByName(args[0]);
InetAddress source = InetAddress.getByName(args[1]);
int port = Integer.parseInt(args[2]);

AudioFormat audioFormat = new AudioFormat(44100, 16, 2, true, true);
SourceDataLine sourceDataLine = AudioSystem.getSourceDataLine(audioFormat);
sourceDataLine.open(audioFormat);
sourceDataLine.start();

MulticastSocket socket = new MulticastSocket(1234);
socket.joinGroup(InetAddress.getByName("232.2.3.2"));
byte[] buffer = new byte[65536];
DatagramPacket packet = new DatagramPacket(buffer, buffer.length);
MulticastSocket mcstsck = new MulticastSocket();
DatagramChannel channel = DatagramChannel.open();
channel.socket().bind(new InetSocketAddress(port));
channel.join(group, mcstsck.getNetworkInterface(), source);
ByteBuffer buffer = ByteBuffer.allocate(4096);
for (;;) {
socket.receive(packet);
sourceDataLine.write(buffer, 12, packet.getLength() - 12);
buffer.clear();
channel.receive(buffer);
sourceDataLine.write(buffer.array(), 12, buffer.position() - 12);
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/rtr.csv
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
url;file;result;test
-;-;-;freeRouter v24.12.30-cur, done by sprscc13@mrn0b0dy.
-;-;-;2024-12-30 15:16:39, took 00:14:43, with 50 workers, on 3602 cases, 0 failed, 0 traces, 4 retries
-;-;-;2024-12-30 15:58:24, took 00:14:40, with 50 workers, on 3602 cases, 0 failed, 0 traces, 1 retries
-;-;-;./rtr.bin
http://sources.freertr.org/cfg/basic01.tst;basic01.tst;success;dummy test
http://sources.freertr.org/cfg/basic02.tst;basic02.tst;success;interface with slot
Expand Down
2 changes: 1 addition & 1 deletion src/rtr.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
</style>
<title>tester</title></head><body>
release: freeRouter v24.12.30-cur, done by sprscc13@mrn0b0dy.<br/>
tested: 2024-12-30 15:16:39, took 00:14:43, with 50 workers, on 3602 cases, 0 failed, 0 traces, 4 retries<br/>
tested: 2024-12-30 15:58:24, took 00:14:40, with 50 workers, on 3602 cases, 0 failed, 0 traces, 1 retries<br/>
jvm: ./rtr.bin<br/>
<br/>
<table><thead><tr><td><b>file</b></td><td><b>result</b></td><td><b>test</b></td></tr></thead><tbody>
Expand Down
2 changes: 1 addition & 1 deletion src/rtr8.csv
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
url;file;result;test
-;-;-;freeRouter v24.12.30-cur, done by sprscc13@mrn0b0dy.
-;-;-;2024-12-30 15:29:26, took 00:12:25, with 50 workers, on 674 cases, 0 failed, 0 traces, 0 retries
-;-;-;2024-12-30 16:08:24, took 00:09:38, with 50 workers, on 674 cases, 0 failed, 0 traces, 0 retries
-;-;-;./rtr.bin
http://sources.freertr.org/cfg/p4lang-acl001.tst;p4lang-acl001.tst;success;p4lang: copp
http://sources.freertr.org/cfg/p4lang-acl002.tst;p4lang-acl002.tst;success;p4lang: ingress access list
Expand Down
2 changes: 1 addition & 1 deletion src/rtr8.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
</style>
<title>tester</title></head><body>
release: freeRouter v24.12.30-cur, done by sprscc13@mrn0b0dy.<br/>
tested: 2024-12-30 15:29:26, took 00:12:25, with 50 workers, on 674 cases, 0 failed, 0 traces, 0 retries<br/>
tested: 2024-12-30 16:08:24, took 00:09:38, with 50 workers, on 674 cases, 0 failed, 0 traces, 0 retries<br/>
jvm: ./rtr.bin<br/>
<br/>
<table><thead><tr><td><b>file</b></td><td><b>result</b></td><td><b>test</b></td></tr></thead><tbody>
Expand Down

0 comments on commit d126617

Please sign in to comment.