Skip to content

Commit

Permalink
udp communication
Browse files Browse the repository at this point in the history
  • Loading branch information
KadirTaban committed Oct 4, 2023
1 parent 355b4e2 commit dfbf7f1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 6 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 0 additions & 2 deletions src/main/java/org/example/UDPClient.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package org.example;


import java.io.IOException;
import java.net.*;

Expand All @@ -14,7 +13,6 @@ public UDPClient() throws SocketException, UnknownHostException {
address = InetAddress.getByName("10.57.37.183");
}


public String sendEcho(String msg) throws IOException {
buf = msg.getBytes();
DatagramPacket packet = new DatagramPacket(buf, buf.length, address, 4445);
Expand Down

0 comments on commit dfbf7f1

Please sign in to comment.