• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

API's

 
Ranch Hand
Posts: 428
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I am very new to API. I want to know how to create it menas which are basic steps I have to concern?

Thanks in advance,
Angela
 
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
API stands for Application Programming Interface. Java API's are usually created by Sun and used by the rest of us. Which API are you interested in?
 
Angela Jessi
Ranch Hand
Posts: 428
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks Bodie,
I want to make Socket API and GUI API. Please give me suggestion how to start and if any examples you have.
Thanks again,
Angela

Originally posted by Bodie Minster:
API stands for Application Programming Interface. Java API's are usually created by Sun and used by the rest of us. Which API are you interested in?


 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You mean you want to build a standalone GUI application using Java? And you want to make use of the Socket API in that application?
Let's start with the GUI application. You could build a simple JFrame with a button in it. When you can get it to show up on screen the way you expect it to, you can make it do something a little more interesting.
This will involve creating a custom class that extends JFrame. You will need to pick a layout manager. I like GridBagLayout, but it is very complex for just a single button. Probably FlowLayout would suffice for this application. Once you have that all set up, create an instance of a JButton and add it to your JFrame. Then pack and show the application.
 
Angela Jessi
Ranch Hand
Posts: 428
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks again Bodie,
What my project is:
We are developing Client-Server programs.
We already develope Socket Layer which send/Receive some string.
Now We want to write some function (means SocketAPI) through with we can set/Get the values from the server with push mechanism. That values when We get from server with function GET VALUES(API), we want to put into appropriate GUI's. For this we want to some marshling and demarshling for request message to get the value. FOR ALL THIS PURPOSE I HAVE TO WRITE SOME API on Client side using Java.I don't know what is marshling and demarshling? If I know i have to make API set for this.
Would you please help me out in this,
Thanks again,
Angela
 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Sorry, but I've never heard of marshaling and demarshaling.
 
Ranch Hand
Posts: 477
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Angela: Are you talking about the use of RMI?
 
Ranch Hand
Posts: 241
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
According to Ed Roman, in his book Mastering Enterprise JavaBeans,
"[W]hat if the target machine represents data differently than the way you represent data? For example, what happens if one machine uses a different binary standard to represent numbers?....Marshalling and unmarshalling is the process of massaging parameters so that they are usable on the machine being invoked on remotely. It is the packaging and unpackaging of parameters so that they are usable in two heterogeneous environments." (p. 506, Appendix A, "Understanding Java Remote Method Invocation (RMI)".)
Hope this helps,
Art
 
Angela Jessi
Ranch Hand
Posts: 428
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks everyone...
I want to develop SOCKET API's like openSocket(), sendSocket(), receiveSocket(),TCPSocket()
i will appreciate help,
Thanks
angela
 
Ranch Hand
Posts: 80
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Angela,
API as alredy specified stands for Application Programming Interface. These are usually supplied by the builder or creator of languages for the developers to build their own programs or softwares. Like JDK1.2 API is provided by Sun Micriosystems for the programmers to build their own Softwares.
So, API in itself is a very big thing.
I think u r getting confused. You actually wish to develop a client side program which does all that u wrote and for that you will be using the API's provided by Sun Microsystems.
 
reply
    Bookmark Topic Watch Topic
  • New Topic