![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Newbie
Join Date: Jul 2005
Posts: 2
Rep Power: 0
![]() |
Communicating between delphi and java apps
i am currently working on a program that needs to communicate with a delphi program. i have goten the programs to connect, and have been able to send strings, but niether can read them. If anyone has any ideas on how to read the strings, please reply
![]() edit: forgot to mention, im using the TCP protocol |
|
|
|
|
|
#2 |
|
Resident Grouch
![]() ![]() ![]() ![]() ![]() ![]() Join Date: Jun 2005
Posts: 6,453
Rep Power: 10
![]() |
You have to use a format that both expect and understand. Your communications should also be in network byte order, which isn't a given. There isn't hardly any information in your post; not much more can be said.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code. Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers |
|
|
|
|
|
#3 |
|
Newbie
Join Date: Jul 2005
Location: Finland
Posts: 1
Rep Power: 0
![]() |
ok. heres some more information:
- TCP protocol, Java application as server, delphi application as client, using ICS and TClientSocket in delphi. (I mean, I tried both, both worked the same way) - The data format is String. Both, client and server excepts it to be string. - everything happens at localhost (doesen't really have anything to do with this) So the problem: I activate the server, then connect client to it. Succesfull, both applications notify me that they are connected. Then, I try to send some strings from client to server, but nothing happens. The server should print received strings to console when it gets them, but nothing happens. Client application tells me that those strings have been sent from client, but server never gets them? Where is the problem? everything seems to be ok in the code.. i also tried java application as client, delphi application as server, same result. |
|
|
|
|
|
#4 |
|
Resident Grouch
![]() ![]() ![]() ![]() ![]() ![]() Join Date: Jun 2005
Posts: 6,453
Rep Power: 10
![]() |
Are you the same person as the OP?? Alter ego or something? One personality for Java and another for Delphi? Inquiring minds want to know
.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code. Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers |
|
|
|
|
|
#5 | |
|
Newbie
Join Date: Jul 2005
Posts: 2
Rep Power: 0
![]() |
Quote:
he is doing the delphi part, im doing the java |
|
|
|
|
|
|
#6 | ||
|
Resident Grouch
![]() ![]() ![]() ![]() ![]() ![]() Join Date: Jun 2005
Posts: 6,453
Rep Power: 10
![]() |
Debugging a program transcends the language used. It revolves around the examination of data. Some of that is contained in status information and more is contained in the contents of the application-specific variables. You say you have established a connection. That is a Good Thang. Some of the other information you supply is contradictory. One post implies that material is transferred but not successfully interpreted.
Quote:
Quote:
Congratulations on not being a practicing schizophrenic, you had me wondering .
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code. Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers |
||
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|