Win a copy of Modern JavaScript for the Impatient this week in the Server-Side JavaScript and NodeJS forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

How to set up a client-server application ?

 
Ranch Hand
Posts: 53
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I wanna to creat a client-server application and need to transfer various kinds of information between C-S(ie,Client-Server),these information includes identity validation, talking and some others : And my question is : Can i declare numbers of inputstreams and outputstreams in a single socket connection just like " new data input stream( socket.getinput stream() )"?If yes , How can i do that ? If no , does that means i should create numbers of input(output)streams for each kinds of information using numbers of socket connection ? Tks in advance for your kindly help .
 
Ranch Hand
Posts: 1400
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can use this forum for your question.
It can offer you better response.
 
Bartender
Posts: 9615
16
Mac OS X Linux Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


new data input stream( socket.getinput stream() )


No. That would just create a new input stream object that references the socket's single input stream. It would be best if you walk through the Java Tutorial: Custom Networking to get a better sense as to what's going on behind the scenes. It would be a good idea to look at the Java Tutorial: IO as well.
 
Consider Paul's rocket mass heater.
    Bookmark Topic Watch Topic
  • New Topic