File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Sockets and Internet Protocols and the fly likes Java VB communication Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Sockets and Internet Protocols
Bookmark "Java VB communication" Watch "Java VB communication" New topic

Java VB communication


Joined: Nov 15, 2001
Posts: 2
I have a system, where my VB program sends strings to a Java server. Now I have been using BufferedInputStream to read character form the socket. But I want to read the whole string sent my the VB program. How can I read the complete string sent by VB? I need something like DataInputStream which works perfectly for Java to Java communication. Currently, I send a special character after each string (in the VB program) so when the Java server get that charater it understands that a string has been completed. Now what I am thinking it that it won't work when multi machines are sending data to the same port. The java program might now get all charaters serially from the same PC. SO I need to get the whole string sent by the VB program. Any suggestions?
ersin eser
Ranch Hand

Joined: Feb 22, 2001
Posts: 1072
Hi Anam,
Welcome to javaranch, Please read our naming policy and re register with a proper name.

Joined: Nov 15, 2001
Posts: 2
The naming policy is very confusing. It asked my username but also said something like ", name" after it. I wasn't sure if it wanted my username or my real name. Why not just povide another field for Real name? ALso why not modify the system so that we can edit profiles?
[This message has been edited by anam (edited November 15, 2001).]
Carl Trusiak

Joined: Jun 13, 2000
Posts: 3340
When you click register you are taken to a page with
<h2>For your user name, use a first name,
a space and a last name.</h2>
No commas or underscores, and the last name must be more than one letter. Obviously fictitious names or improperly formatted names may be locked out.

You have to click accept to get the the profile form. How much clearer does this need to be?
[This message has been edited by Carl Trusiak (edited November 15, 2001).]
[This message has been edited by Carl Trusiak (edited November 15, 2001).]

I Hope This Helps
Carl Trusiak, SCJP2, SCWCD
I agree. Here's the link:
subject: Java VB communication
It's not a secret anymore!