Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 2a21a1f

Browse files
some new changes
1 parent 95e5f57 commit 2a21a1f

File tree

3 files changed

+15
-18
lines changed

3 files changed

+15
-18
lines changed

‎.idea/workspace.xml

Lines changed: 13 additions & 16 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎src/com/example/hello_world_package/Network_Programming_TCP_Client_Code.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ public static void main(String[] args) throws IOException {
2020

2121
//Lets send a number to the server, double it there and then get that value back to the client and print here
2222
int to_send_to_Server, to_receive_from_the_server;
23-
System.out.println("Enter a number to send to the server\n");
23+
System.out.println("Enter a number to send to the server.\n");
2424
Scanner scanner = new Scanner(System.in);
2525
to_send_to_Server = scanner.nextInt();
2626

‎src/com/example/hello_world_package/Network_Programming_TCP_Server_Code.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ public static void main(String[] args) throws IOException {
1616
System.out.println("\n The port number used for client is "+socket.getPort());//Returns the client machine's port number to which this socket is connected.
1717

1818
//You might think how does the server know which port to connect to on the client
19-
//Client's port number is the part of the TCP header in the ip packet. So the server finds out because the client tells it through its TCP header.
19+
//Client's port number is part of the TCP header in the ip packet. So the server finds out because the client tells it through its TCP header.
2020

2121
// lets set an inputstream for this socket
2222
Scanner scanner = new Scanner(socket.getInputStream());

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /