-
Notifications
You must be signed in to change notification settings - Fork 497
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Wisp] Fix initialization problem between JavaNetSocketAccess and its…
… usage Summary: JavaNetSocketAccess is used in WispServerSocketImpl.java, but the former one's initialization is in Socket.java. This underlying problem shall be fixed. Test Plan: ServerSocketConnectionTest.java Reviewed-by: D-D-H, yuleil Issue: #437
- Loading branch information
1 parent
c720c95
commit cdbee46
Showing
3 changed files
with
44 additions
and
0 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import java.io.IOException; | ||
import java.net.ServerSocket; | ||
import java.net.*; | ||
import java.net.Socket; | ||
|
||
public class SimpleClient { | ||
|
||
public static void main(String[] args) throws Exception { | ||
Socket socket = new Socket(); | ||
socket.connect(new InetSocketAddress(InetAddress.getLocalHost(), Integer.parseInt(args[0]))); | ||
System.out.println(socket.getRemoteSocketAddress()); | ||
} | ||
|
||
} |