Bläddra i källkod

added client methods

master
MrTob 1 år sedan
förälder
incheckning
082efee39a
2 ändrade filer med 37 tillägg och 32 borttagningar
  1. +36
    -14
      .idea/workspace.xml
  2. +1
    -18
      src/xyz/nextn/Client.java

+ 36
- 14
.idea/workspace.xml Visa fil

@@ -24,11 +24,11 @@
</provider>
</entry>
</file>
<file pinned="false" current-in-tab="true">
<file pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/src/xyz/nextn/Server.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="374">
<caret line="30" column="57" lean-forward="true" selection-start-line="30" selection-start-column="57" selection-end-line="30" selection-end-column="58" />
<state relative-caret-position="398">
<caret line="64" column="39" lean-forward="true" selection-start-line="64" selection-start-column="39" selection-end-line="64" selection-end-column="39" />
<folding>
<element signature="imports" expanded="true" />
<element signature="e#549#550#0" expanded="true" />
@@ -38,11 +38,14 @@
</provider>
</entry>
</file>
<file pinned="false" current-in-tab="false">
<file pinned="false" current-in-tab="true">
<entry file="file://$PROJECT_DIR$/src/xyz/nextn/Client.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="34">
<caret line="2" column="13" selection-start-line="2" selection-start-column="13" selection-end-line="2" selection-end-column="13" />
<state relative-caret-position="306">
<caret line="18" column="19" lean-forward="true" selection-start-line="18" selection-start-column="19" selection-end-line="18" selection-end-column="19" />
<folding>
<element signature="imports" expanded="true" />
</folding>
</state>
</provider>
</entry>
@@ -57,6 +60,7 @@
<list>
<option value="$PROJECT_DIR$/src/xyz/nextn/Main.java" />
<option value="$PROJECT_DIR$/src/xyz/nextn/Server.java" />
<option value="$PROJECT_DIR$/src/xyz/nextn/Client.java" />
</list>
</option>
</component>
@@ -173,11 +177,18 @@
<option name="project" value="LOCAL" />
<updated>1569263789745</updated>
</task>
<option name="localTasksCounter" value="5" />
<task id="LOCAL-00005" summary="added client methods">
<created>1569264094517</created>
<option name="number" value="00005" />
<option name="presentableId" value="LOCAL-00005" />
<option name="project" value="LOCAL" />
<updated>1569264094517</updated>
</task>
<option name="localTasksCounter" value="6" />
<servers />
</component>
<component name="TimeTrackingManager">
<option name="totallyTimeSpent" value="305000" />
<option name="totallyTimeSpent" value="557000" />
</component>
<component name="ToolWindowManager">
<frame x="-8" y="-8" width="1936" height="1056" extended-state="6" />
@@ -247,9 +258,22 @@
<MESSAGE value="git init" />
<MESSAGE value="added server" />
<MESSAGE value="added Server methods" />
<option name="LAST_COMMIT_MESSAGE" value="added Server methods" />
<MESSAGE value="added client methods" />
<option name="LAST_COMMIT_MESSAGE" value="added client methods" />
</component>
<component name="editorHistoryManager">
<entry file="file://$PROJECT_DIR$/src/xyz/nextn/Server.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="398">
<caret line="64" column="39" lean-forward="true" selection-start-line="64" selection-start-column="39" selection-end-line="64" selection-end-column="39" />
<folding>
<element signature="imports" expanded="true" />
<element signature="e#549#550#0" expanded="true" />
<element signature="e#599#600#0" expanded="true" />
</folding>
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/src/xyz/nextn/Main.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="119">
@@ -257,14 +281,12 @@
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/src/xyz/nextn/Server.java">
<entry file="file://$PROJECT_DIR$/src/xyz/nextn/Client.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="374">
<caret line="30" column="57" lean-forward="true" selection-start-line="30" selection-start-column="57" selection-end-line="30" selection-end-column="58" />
<state relative-caret-position="306">
<caret line="18" column="19" lean-forward="true" selection-start-line="18" selection-start-column="19" selection-end-line="18" selection-end-column="19" />
<folding>
<element signature="imports" expanded="true" />
<element signature="e#549#550#0" expanded="true" />
<element signature="e#599#600#0" expanded="true" />
</folding>
</state>
</provider>


+ 1
- 18
src/xyz/nextn/Client.java Visa fil

@@ -1,23 +1,6 @@
package xyz.nextn;

import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.net.Socket;
import java.text.DateFormat;
import java.text.SimpleDateFormat;

public class Client extends Thread
{
DateFormat fordate = new SimpleDateFormat("yyyy/MM/dd");
DateFormat fortime = new SimpleDateFormat("hh:mm:ss");
final DataInputStream dis;
final DataOutputStream dos;
final Socket s;
public class Client{

public Client(Socket s, DataInputStream dis, DataOutputStream dos)
{
this.s = s;
this.dis = dis;
this.dos = dos;
}
}

Laddar…
Avbryt
Spara