esoe 2 years ago
parent
commit
c5ee980b76
  1. 1
      src/main/java/module-info.java
  2. 4
      src/main/java/ru/molokoin/Connection.java
  3. BIN
      target/classes/module-info.class
  4. BIN
      target/classes/ru/molokoin/App.class
  5. BIN
      target/classes/ru/molokoin/Connection.class
  6. BIN
      target/classes/ru/molokoin/ServerLauncher.class
  7. BIN
      target/classes/ru/molokoin/example/ExchangeServer.class
  8. BIN
      target/classes/ru/molokoin/example/TestServerNIO.class
  9. BIN
      target/classes/ru/molokoin/example/UploadServer.class
  10. BIN
      target/classes/ru/molokoin/example/servernio/IServerAdminFace.class
  11. BIN
      target/classes/ru/molokoin/example/servernio/IServerUserFace.class
  12. BIN
      target/classes/ru/molokoin/example/servernio/Server.class
  13. BIN
      target/classes/ru/molokoin/example/testFileSystem.class

1
src/main/java/module-info.java

@ -1,5 +1,6 @@
module ru.molokoin { module ru.molokoin {
requires transitive javafx.controls; requires transitive javafx.controls;
requires transitive javafx.fxml; requires transitive javafx.fxml;
requires transitive java.net.http;
exports ru.molokoin; exports ru.molokoin;
} }

4
src/main/java/ru/molokoin/Connection.java

@ -2,6 +2,7 @@ package ru.molokoin;
import java.io.IOException; import java.io.IOException;
import java.io.RandomAccessFile; import java.io.RandomAccessFile;
import java.net.http.HttpResponse;
import java.nio.ByteBuffer; import java.nio.ByteBuffer;
import java.nio.channels.FileChannel; import java.nio.channels.FileChannel;
import java.nio.channels.SocketChannel; import java.nio.channels.SocketChannel;
@ -10,6 +11,7 @@ import java.nio.file.Paths;
public class Connection { public class Connection {
public SocketChannel accepted = null; public SocketChannel accepted = null;
public Connection(){} public Connection(){}
public Connection(SocketChannel accepted){ public Connection(SocketChannel accepted){
this.accepted = accepted; this.accepted = accepted;
@ -27,6 +29,8 @@ public class Connection {
buf.flip(); buf.flip();
while(buf.hasRemaining()){ while(buf.hasRemaining()){
System.out.print((char)buf.get()); System.out.print((char)buf.get());
//HttpResponse<String> responseOfString;
//String s = HttpRequest.BodyPublishers::ofString("String");
//accepted.write(buf); //accepted.write(buf);
} }
buf.clear(); buf.clear();

BIN
target/classes/module-info.class

Binary file not shown.

BIN
target/classes/ru/molokoin/App.class

Binary file not shown.

BIN
target/classes/ru/molokoin/Connection.class

Binary file not shown.

BIN
target/classes/ru/molokoin/ServerLauncher.class

Binary file not shown.

BIN
target/classes/ru/molokoin/example/ExchangeServer.class

Binary file not shown.

BIN
target/classes/ru/molokoin/example/TestServerNIO.class

Binary file not shown.

BIN
target/classes/ru/molokoin/example/UploadServer.class

Binary file not shown.

BIN
target/classes/ru/molokoin/example/servernio/IServerAdminFace.class

Binary file not shown.

BIN
target/classes/ru/molokoin/example/servernio/IServerUserFace.class

Binary file not shown.

BIN
target/classes/ru/molokoin/example/servernio/Server.class

Binary file not shown.

BIN
target/classes/ru/molokoin/example/testFileSystem.class

Binary file not shown.
Loading…
Cancel
Save