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

Writing to ports  RSS feed

 
Chandrika Ratnam
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello ,

I'm new to socket programming , having problem to solve the following situation.

I have an input file. I need to write a line from this file to the port and then read it from the port and process the line.

I have to continue like this till i reach the end of the file.

The purpose of writing to port and reading from port is my module is a second in all modules. I get data from the first modules through ports. So I have to read from port. So I'm trying to replicate it.

Please help.
Thanks !
RC
 
Stan James
(instanceof Sidekick)
Ranch Hand
Posts: 8791
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, have you run through the Sun Networking Tutorial? It's really quite good. Some of the examples will likely give you a head-start on your problem.

Show us what you make. The ranch works really well on short chunks of code that almost works.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!