Link to home
Start Free TrialLog in
Avatar of peterade
peterade

asked on

Re: physical layer

hi guys. does anyone know how to import physical layer in java
Avatar of TommySzalapski
TommySzalapski
Flag of United States of America image

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.
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.
ASKER CERTIFIED SOLUTION
Avatar of TommySzalapski
TommySzalapski
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of peterade
peterade

ASKER

Good answer to the question