• 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

How to set up a client-server application ?

 
Ranch Hand
Posts: 53
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You can use this forum for your question.
It can offer you better response.
 
Bartender
Posts: 9626
16
Mac OS X Linux Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
I am going down to the lab. Do NOT let anyone in. Not even this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic