Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Communication Between ServerSocket and Socket  RSS feed

 
Shantanu Gangakhedkar
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Friends
While Using Client Server in Socket Programing which I/O Streams can be used to Communicate between Client Server Sockets.
Please send me some info.


------------------
S.R.Gangakhedkar
 
Frank Carver
Sheriff
Posts: 6920
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Any of the streams or readers/writers can be used to read or write to a socket. Class socket has two methods getInputStream() and getOutputStream() which return a basic stream which may be either used direct or embelished. For example:
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!