Results 1 to 3 of 3
- 08-27-2008, 06:03 AM #1
Member
- Join Date
- Aug 2008
- Posts
- 1
- Rep Power
- 0
Communicating Java Server and C client using char buffer
Hello,
I have a C server which writes char string to buffer
char buffer[3000]="message=1|Value=1|a="Hello"|b=2|c="How are u"
There is a java server listening for this on socket
Q.1 Can i directly use java and C communicate on socket for this char string
After recieving this message java will do some processing and give response to C client
Q2. Can java send such character string message as response to C client so that java server and C Client can communicate directly on Socket apart from using JNI
- 08-27-2008, 02:32 PM #2
Any two programs should be able to communicate via a socket as long as they understand the format of the data they are sending/receiving.
- 08-27-2008, 03:24 PM #3
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
Only thing to do is, format the data packet(buffer actually) correctly which the server can correctly. Or else you have do modifications on either side. That's what Norm trying to explain.
Similar Threads
-
Server not able to connect client
By Kapil Gupta in forum New To JavaReplies: 15Last Post: 07-22-2008, 04:09 AM -
When to use –client and -server option while running a java program
By Java Tip in forum java.langReplies: 0Last Post: 04-04-2008, 02:49 PM -
Identify Client in Socket Client Server Application
By masadjie in forum NetworkingReplies: 1Last Post: 12-20-2007, 09:18 AM -
Communicating with JSP and popup
By nilz in forum JavaServer Pages (JSP) and JSTLReplies: 0Last Post: 11-20-2007, 04:29 PM -
How to post HTTPS request from java client to server
By Desai in forum NetworkingReplies: 1Last Post: 07-14-2007, 05:15 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks