This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

C -> Java Socket Transfer  RSS feed

 
Huw Boy
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is it possible to send data in a C program to a URL running a Java server. Can I set up a socket connection between the two to stream data between them?
How could I simply test this connection?
Thanks
Huw
 
karl koch
Ranch Hand
Posts: 388
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
yes, you can.
it just have to be same style of connection / protocol on each side.
perhaps you need to check in what order the bytes arrive/leave the java side.
karl
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!