Solved

Re: physical layer

Posted on 2011-02-12
6
290 Views
Last Modified: 2012-05-11
hi guys. does anyone know how to import physical layer in java
0
Comment
Question by:peterade
  • 3
6 Comments
 
LVL 37

Expert Comment

by:TommySzalapski
ID: 34879302
You really can't do anything with the physical layer in Java's native code. Java is so far removed from the physical layer that your question really doesn't make much sense.
To work with the physical layer, you'll need to either write some C code and call it from the Java code or even write some assembly code and reference that from the C code.
What exactly are you trying to do? Maybe there is a better way to get at it.
0
 
LVL 13

Expert Comment

by:George K.
ID: 34879372
0
 
LVL 37

Expert Comment

by:TommySzalapski
ID: 34879498
That is an example of a link layer (which is a step above the physical layer). The link layer is still rather dependent on the hardware, so the code there won't translate well to other platforms.

"The physical layer provides a bit stream interface to the link layer. This layer is very hardware-dependent."

This is why you can't write general physical layer code. It would have to specifically target the exact hardware you are using. You would need entirely different code even on the same machine if you plugged it into a different network. Also, the code would very from machine to machine even running the same OS.
0
 
LVL 37

Accepted Solution

by:
TommySzalapski earned 500 total points
ID: 35076192
An answer of "It can't be done." is often technically the correct answer. Experts Exchange policy is to accept that kind of answer instead of deleting the question.

It is also EE policy that you should respond to the comments from the experts before deleting a question so we know why you want to delete it. I feel we gave good answers to the question.
0
 

Author Closing Comment

by:peterade
ID: 35093592
Good answer to the question
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
mirrorEnds challenge 6 94
java continue statement 10 118
base64 decode encode 12 122
Problem to error 4 46
The greatest common divisor (gcd) of two positive integers is their largest common divisor. Let's consider two numbers 12 and 20. The divisors of 12 are 1, 2, 3, 4, 6, 12 The divisors of 20 are 1, 2, 4, 5, 10 20 The highest number among the c…
How to remove superseded packages in windows w60 or w61 installation media (.wim) or online system to prevent unnecessary space. w60 means Windows Vista or Windows Server 2008. w61 means Windows 7 or Windows Server 2008 R2. There are various …
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.
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.

895 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now