Solved

TCP/UDP in java package

Posted on 2003-11-08
4
346 Views
Last Modified: 2006-11-17
Is there such thing as a TCP class in the java package?   Suppose if I want to send the data over a network using TCP or UDP.   For would I decide which one I want to use?   I know that you can implement your own protocol but if you want to use TCP or UDP, how is that possible?   I wanted to know since I couldn't find a class related to TCP or UDP in the java package.   A little explanation on how this works is appreciated.   Thanks.  
0
Comment
Question by:skyblue01
  • 3
4 Comments
 
LVL 86

Accepted Solution

by:
CEHJ earned 100 total points
ID: 9707690
All the TCP/IP classes are in the java.net package. The main ones are

Socket
ServerSocket
Datagram
URLConnection
0
 
LVL 86

Expert Comment

by:CEHJ
ID: 9707693
Sorry - not - 'Datagram' - i meant

DatagramSocket
DatagramPacket
0
 

Author Comment

by:skyblue01
ID: 9707731
Thanks.   So I guess for all the connections that uses Socket and ServerSocket are in fact TCP.   This will then indicate that for data sent using these TCP connections, I shouldn't be losing any data or getting delays along the way -- is that right?
0
 
LVL 86

Expert Comment

by:CEHJ
ID: 9707742
>>So I guess for all the connections that uses Socket and ServerSocket are in fact TCP.

Yes

>>shouldn't be losing any data or getting delays along the way -- is that right?
     
Shouldn't be no, so to answer your other question 'informally', the problem with unexpected data is probably a logic error

0

Featured Post

The Eight Noble Truths of Backup and Recovery

How can IT departments tackle the challenges of a Big Data world? This white paper provides a roadmap to success and helps companies ensure that all their data is safe and secure, no matter if it resides on-premise with physical or virtual machines or in the cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
starter POM and spring-boot-starter,  spring-boot-web 2 56
servlet doXXX methods 3 49
How to convert String matching to regex in java 4 33
hibernate jars 4 32
This was posted to the Netbeans forum a Feb, 2010 and I also sent it to Verisign. Who didn't help much in my struggles to get my application signed. ------------------------- Start The idea here is to target your cell phones with the correct…
Introduction This article is the second of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers the basic installation and configuration of the test automation tools used by…
This video teaches viewers about errors in exception handling.
This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.

810 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question