Win a copy of The Java Performance Companion this week in the Performance 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: 21194
81
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