0

can we use socketchannel to communicate with c++ based TCP server

Prithvi
  • 3
  • 1

1 Answers1

2

Yes you can.. Just pass the correct IP and port number in the socket constructor.

Amit
  • 13,134
  • 17
  • 77
  • 148
  • @ChiragRaval Why? It's not only an answer, it's a correct answer. – user207421 Dec 19 '12 at 06:29
  • @ChiragRaval and why you think so ? This is the most direct answer to a simple direct question. I would have added code (after all the example code is just a google search away or just a search in my eclipse) but I didn't add that. Since that was not asked in the question. Now if the OP wants the code he/she can ask for that in a comment to this answer or by an edit of the question. – Amit Dec 19 '12 at 06:31
  • 1
    This is like to ask "can a java program read a file written by a c++ program". – Alexei Kaigorodov Dec 19 '12 at 06:49