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. I und. you guy's are using programming language to
View Tutorial          By: Ken at 2011-07-25 07:10:41

2. i want to SCJP exam ,tell how to apply for this ex
View Tutorial          By: PRABAKARAN at 2013-07-16 13:32:50

3. the example program is very simple to understand a
View Tutorial          By: Zubilu at 2010-10-06 00:19:13

4. hai, i tried the abvoe code, m getting the follwin
View Tutorial          By: charan at 2011-10-20 12:59:59

5. Very nice
View Tutorial          By: sharath at 2012-07-17 11:31:20

6. better if it is explained with output of the progr
View Tutorial          By: dinesh at 2013-05-05 13:57:21

7. import java.io.*;
import java.util.Stack;
View Tutorial          By: jack&jill at 2011-07-26 06:40:32

8. can for statement be used in a switch statement fo
View Tutorial          By: Osei Quadwo at 2014-10-08 20:12:17

9. how to connect jdbc in java on mysql
View Tutorial          By: naseem at 2011-10-26 19:26:45

10. Hi Sir,
Thank You so much for your

View Tutorial          By: kareena at 2010-10-21 23:26:37