Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Help me Socket  RSS feed

 
Dorj Galaa
Ranch Hand
Posts: 113
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello
I'm writed code below. Socket can read data but can't write data to clientsocket(DataOutputStream);
DataOutputStream out =new DataOutputStream(socket.getOutputStream());
BufferedReader br= new BufferedReader(new InputStreamReader(socket.getInputStream()));
String ss=br.readLine();
br.close();
String FileName="ddd/"+ss+".dat";
DataInputStream datainputstream = new DataInputStream(new FileInputStream(FileName));
datainputstream.skipBytes(10);
datainputstream.read(data,0,126);
datainputstream.close();
out.close();
How to write data to ClientSocket
 
karl koch
Ranch Hand
Posts: 388
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
check the "help with socket" post in this group.
karl
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!