• 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
  • Ron McLeod
  • Paul Clapham
  • Tim Cooke
  • Devaka Cooray
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
Bartenders:
  • Carey Brown
  • Roland Mueller

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.
 
Anderson gave himself the promotion. So I gave myself this tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic