This week's book giveaway is in the OCAJP forum.
We're giving away four copies of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) and have Khalid A Mughal & Rolf W Rasmussen on-line!
See this thread for details.
Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to make a socket between java and c++ application.

 
phooton misra
Ranch Hand
Posts: 52
Eclipse IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Somebody please suggest me how can i make a socket program between c++ and java application?
 
Henry Wong
author
Marshal
Pie
Posts: 21408
84
C++ Chrome Eclipse IDE Firefox Browser Java jQuery Linux VI Editor Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
phooton misra wrote:Somebody please suggest me how can i make a socket program between c++ and java application?


Java supports standard network protocols -- both TCP and UDP -- so the standard Java usage of sockets will communicate fine with their C / C++ counterparts. There is no need to do anything different if the other program is C++, just use the matching protocol configurations, and it will work.

Henry
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic