Comment on Tutorial - TCP Server and TCP Client in Java By Ashish Myles



Comment Added by : newbee

Comment Added at : 2015-04-15 13:21:55

Comment on Tutorial : TCP Server and TCP Client in Java By Ashish Myles
hey im a novice in java...so i have to make a connection to another machine and send data using tcp/ip!
How do i get this done?
I tried this:

import java.io.IOException;
import java.net.Socket;
import java.net.InetSocketAddress;
import java.net.SocketAddress;



Socket connection = new Socket(server,AGREED_PORT_NUMBER);
makeRequestToServer(connection);
getReplyFromServer(connection);

connection.close();

But got an error saying TYPED VARIABLE DECLARATION-OBJECT CONSTRUCTOR


View Tutorial



Subscribe to Tutorials

Related Tutorials

Program using concept of byte long short and int in java

Update contents of a file within a jar file

Tomcat and httpd configured in port 8080 and 80

Java File

Java String

Count number of vowels, consonants and digits in a String in Java

Reverse a number in Java

Student marks calculation program in Java

Handling Fractions in Java

Calculate gross salary in Java

Calculate average sale of the week in Java

Vector in Java - Sample Program

MultiLevel Inheritance sample in Java

Multiple Inheritance sample in Java

Java program using Method Overriding

Archived Comments

1. right to point.. thanks man
View Tutorial          By: manish at 2012-07-28 15:01:26

2. Why this exception at run time?

Fri

View Tutorial          By: Sebin Joseph at 2011-04-01 06:03:17

3. Well, I am fortunate to run CentOS 5 - everywhere
View Tutorial          By: Goozy at 2009-07-25 11:18:45

4. Thanks for Your valuable Explanation.
View Tutorial          By: Srikanth at 2012-12-24 10:49:02

5. how to run file IO program?
isn't that must

View Tutorial          By: farah at 2009-08-24 02:41:59

6. Please assist me in getting the code to read messa
View Tutorial          By: Jaydatta at 2009-04-05 23:24:57

7. very thanks...
View Tutorial          By: anush at 2012-08-10 07:46:53

8. where i put this rar file to include comm api
View Tutorial          By: shubham bansal at 2015-02-20 12:13:16

9. hi am new to java! i need some simple java program
View Tutorial          By: Anu at 2010-09-08 08:17:49

10. can i apply multidimensional array list the progra
View Tutorial          By: [email protected] at 2009-07-01 05:09:27