From c5ee980b761a1c3c40b447c5f37296b4d952b1be Mon Sep 17 00:00:00 2001 From: esoe Date: Tue, 11 Oct 2022 22:49:55 +0300 Subject: [PATCH] qq --- src/main/java/module-info.java | 1 + src/main/java/ru/molokoin/Connection.java | 4 ++++ target/classes/module-info.class | Bin 223 -> 248 bytes target/classes/ru/molokoin/App.class | Bin 2248 -> 2248 bytes target/classes/ru/molokoin/Connection.class | Bin 2534 -> 2534 bytes .../classes/ru/molokoin/ServerLauncher.class | Bin 1916 -> 1916 bytes .../ru/molokoin/example/ExchangeServer.class | Bin 4604 -> 4604 bytes .../ru/molokoin/example/TestServerNIO.class | Bin 1028 -> 1028 bytes .../ru/molokoin/example/UploadServer.class | Bin 7276 -> 7276 bytes .../example/servernio/IServerAdminFace.class | Bin 249 -> 249 bytes .../example/servernio/IServerUserFace.class | Bin 141 -> 141 bytes .../molokoin/example/servernio/Server.class | Bin 883 -> 883 bytes .../ru/molokoin/example/testFileSystem.class | Bin 2617 -> 2617 bytes 13 files changed, 5 insertions(+) diff --git a/src/main/java/module-info.java b/src/main/java/module-info.java index 2f81eec..ca0ce40 100644 --- a/src/main/java/module-info.java +++ b/src/main/java/module-info.java @@ -1,5 +1,6 @@ module ru.molokoin { requires transitive javafx.controls; requires transitive javafx.fxml; + requires transitive java.net.http; exports ru.molokoin; } diff --git a/src/main/java/ru/molokoin/Connection.java b/src/main/java/ru/molokoin/Connection.java index 012856a..2c832ac 100644 --- a/src/main/java/ru/molokoin/Connection.java +++ b/src/main/java/ru/molokoin/Connection.java @@ -2,6 +2,7 @@ package ru.molokoin; import java.io.IOException; import java.io.RandomAccessFile; +import java.net.http.HttpResponse; import java.nio.ByteBuffer; import java.nio.channels.FileChannel; import java.nio.channels.SocketChannel; @@ -10,6 +11,7 @@ import java.nio.file.Paths; public class Connection { public SocketChannel accepted = null; + public Connection(){} public Connection(SocketChannel accepted){ this.accepted = accepted; @@ -27,6 +29,8 @@ public class Connection { buf.flip(); while(buf.hasRemaining()){ System.out.print((char)buf.get()); + //HttpResponse responseOfString; + //String s = HttpRequest.BodyPublishers::ofString("String"); //accepted.write(buf); } buf.clear(); diff --git a/target/classes/module-info.class b/target/classes/module-info.class index 9f9d6fdceab78ef0be1beb6f8a3a1757219d0d7d..b28a83636a416d272161757e3d05d595ba303ba9 100644 GIT binary patch delta 102 zcmcc5_=Az_)W2Q(7#JAL8H6Tsl_~IMC6*=X<)xPBWt5Z@2s7|AGH`;0k`jwkMHmDp l_G;?uF|YwOFfgz%a4;wUX)Z9y119+zfC3DR3<4ku0sueU5;p(< delta 77 zcmeytc%PB$)W2Q(7#J9A83ZPBmGN?BC6*=XB_$T8iZJj`T%f6`!N3NTWnf@t;9yVy T(p+GYrvb=hU}WF}Q4jzC=cWwD diff --git a/target/classes/ru/molokoin/App.class b/target/classes/ru/molokoin/App.class index b936a103238c1da2e0ef79adb5ee8f4e011485cb..14603a5463ada1a6705dc56b09aa9ea381ff7b20 100644 GIT binary patch delta 17 ZcmX>hctVil)W2Q(7#JALH*y@{002Wm2D1PF delta 17 ZcmX>hctVil)W2Q(7#J9AH*y@{002W^2DtzL diff --git a/target/classes/ru/molokoin/Connection.class b/target/classes/ru/molokoin/Connection.class index aad559e7809d4f8c4b1db0dfc9cc6ed9eeac5394..d772a14bb6c7a4ef2e1adf02cd8e1db46d7a28a9 100644 GIT binary patch delta 202 zcmXYpIcfp{7==GkW*l&flPK;43@So`QJJ_96c=n1#v-TzJ4-8DD+|FCX$DVVV=G!& zS9idc0st|3!u|SthcYl0RNmkE36}$vYm3JX4ZEnKukR1T`uQ hsWKAv%_lSAISm#xSxUc>^EGWYboimmFFniDwl_&z9=QMj delta 202 zcmXYpy>3AP9L0YPaoyzlyeXw^QbD8xw}Sc(RfC1(8pKCpGj_6?IyBM2a^ndsR$(%D z01tAX!6g2J>ExW>Imgy*-F?0uPe6U=-ndi`PBc_J*1^?#^xmBhFMfgq2obcx%C;Ov z;YqRxI#J$vCc_I^Ua5(G^G1glrtkrAMkE-MWJ+p(QM89{8ix!t3@Lq(lA%G45_zf= j=<~^tA`>diM1SOTPMwADUmE<;WXTu*v{=!$Om%$&Bf%au diff --git a/target/classes/ru/molokoin/ServerLauncher.class b/target/classes/ru/molokoin/ServerLauncher.class index caf317c598b86818000cd3ff28711853c1f3b39d..8ab02418cb13261150bb9599e8b8f61cfe0bad12 100644 GIT binary patch delta 17 Zcmeyv_lJ+;)W2Q(7#JALH*%D)0{}?R2FL&a delta 17 Zcmeyv_lJ+;)W2Q(7#J9AH*%D)0{}?v2F?Hg diff --git a/target/classes/ru/molokoin/example/ExchangeServer.class b/target/classes/ru/molokoin/example/ExchangeServer.class index b2cc2c15ad9c8e06da125a225e24bd8bccebf0ea..d5bf04dfcd0982bc3c9f5041735e253aa3cb240e 100644 GIT binary patch delta 17 ZcmeyP{70GN)W2Q(7#JALH*$Ot1OQA=2Ydhk delta 17 ZcmeyP{70GN)W2Q(7#J9AH*$Ot1OQBJ2Z8_q diff --git a/target/classes/ru/molokoin/example/TestServerNIO.class b/target/classes/ru/molokoin/example/TestServerNIO.class index 1979f380459c37403ff980df99501afd453e64e4..4142abc5c9a1a126d84d3ecdec4a61c4392f84f8 100644 GIT binary patch delta 17 YcmZqSXyM>E^>5cc1_lQ6jU0cN0XioJPyhe` delta 17 YcmZqSXyM>E^>5cc1_lP(jU0cN0XjtnRsaA1 diff --git a/target/classes/ru/molokoin/example/UploadServer.class b/target/classes/ru/molokoin/example/UploadServer.class index 933d9e049a3e7ce059877db39c7560c9fee12663..f55fa7994d1ae82713e2828ba405766f697163dc 100644 GIT binary patch delta 17 ZcmaE3@y3GV)W2Q(7#JALH*%!N002v{2LS*8 delta 17 ZcmaE3@y3GV)W2Q(7#J9AH*%!N002wQ2L}KE diff --git a/target/classes/ru/molokoin/example/servernio/IServerAdminFace.class b/target/classes/ru/molokoin/example/servernio/IServerAdminFace.class index 55a5086c5c3cc46f2300e423314229a9447240b5..5051c14f569caf6fd72c644d30b993ef06933f5a 100644 GIT binary patch delta 16 Ycmey#_>+<2)W2Q(7#JALCvtoQ06<;_{r~^~ delta 16 Ycmey#_>+<2)W2Q(7#J9ACvtoQ06=yJ1ONa4 diff --git a/target/classes/ru/molokoin/example/servernio/IServerUserFace.class b/target/classes/ru/molokoin/example/servernio/IServerUserFace.class index fd076d812b38bb9b388fb2950f90eb4c42150355..747c4dfc4f7be7c5df684e5fc42eacd7015eb385 100644 GIT binary patch delta 16 XcmeBW>}BLQ^>5cc1_lQ6i5#r}GfD-z delta 16 XcmeBW>}BLQ^>5cc1_lP(i5#r}Ghzk6 diff --git a/target/classes/ru/molokoin/example/servernio/Server.class b/target/classes/ru/molokoin/example/servernio/Server.class index 6ab744081f2937556d53bbcecae53aa0981d42f3..933830d2c1ee8fd8053b4ac53f149885834ae10d 100644 GIT binary patch delta 17 Zcmey&_L+_2)W2Q(7#JALH*#b%0{}*;2AKc= delta 17 Zcmey&_L+_2)W2Q(7#J9AH*#b%0{}+H2A==` diff --git a/target/classes/ru/molokoin/example/testFileSystem.class b/target/classes/ru/molokoin/example/testFileSystem.class index 4a753f0dcca65bf97cac313fe97e9a5faadc8a14..36ebb496659cfc310472b6e523ec8f2322d8b9df 100644 GIT binary patch delta 17 ZcmdlfvQvcP)W2Q(7#JALH*y$q0RTXt1`YrK delta 17 ZcmdlfvQvcP)W2Q(7#J9AH*y$q0RTY01{44Q