-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e1c8360
commit 37a4d58
Showing
18 changed files
with
335 additions
and
274 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 10 additions & 2 deletions
12
connection/src/main/java/org/wot/tak/connection/configuration/SocketFactoryConfig.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 7 additions & 0 deletions
7
connection/src/main/java/org/wot/tak/connection/configuration/TAKServerConnector.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 0 additions & 19 deletions
19
connection/src/main/java/org/wot/tak/connection/connectors/PlainConnector.java
This file was deleted.
Oops, something went wrong.
23 changes: 23 additions & 0 deletions
23
connection/src/main/java/org/wot/tak/connection/connectors/TCPConnector.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
package org.wot.tak.connection.connectors; | ||
|
||
import org.wot.tak.connection.configuration.MessageReceiver; | ||
import org.wot.tak.connection.infra.SocketFactory; | ||
import org.wot.tak.connection.infra.StreamingTcpConnector; | ||
|
||
public final class TCPConnector extends StreamingTcpConnector { | ||
|
||
public TCPConnector(String url, String port, SocketFactory sFactory) { | ||
super(url, port, sFactory, true); | ||
} | ||
|
||
public TCPConnector(String url, String port, SocketFactory sFactory, boolean negotiateProtocolVersion) { | ||
super(url, port, sFactory, negotiateProtocolVersion); | ||
} | ||
|
||
@Override | ||
public void connect(MessageReceiver handler) throws Exception { | ||
this.setSocket(getSocketFactory().createSocket(getUrl(), getPort())); | ||
super.connect(handler); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.