Re: communication between vb and java

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance




"Adrian Chen" <aoopopopo@xxxxxxx> schrieb im Newsbeitrag
news:%23Ra3h74$IHA.4032@xxxxxxxxxxxxxxxxxxxxxxx
Hi everybody,I am strugglling with a problem for a whole day,but still
cannot resolve it.Please give me some suggestion.

I want a client (written by VB6.0) to communication with a server(written
by JAVA).In the debug mode, in the server side ,the server call the java
function "accept()" to block and wait any request from client.Then a
client
using the control in VB6.0: Winsock calls "Winsock1.connect" function to
connect to the server side .And indeed the server receive the request and
programming point(under debug mode) move to next line.And the client go on
to next statement: Winsock1.Senddata str to send the string to server
,then
the problem come up:VB prompt up a box saying:"Run-time error: '40006'
Wrong
protocol or connection state for the requested transaction or request".And
I
check the value of the property "Winsock1.state" is 6(SckConnecting).

Then maybe your breakpoint at the serverside Java-Code
suppresses the socket-connect-attempt (not entirely
accepted and finished) at the server-end. That's why
your VB6-socketstate probably remains in the
'connecting'-state - maybe your debugging works
a bit more reliable, if you set your server-breakpoint
somewhat later, after the socket-request is fully
accepted, so that the VB-clientside-socket can enter
its 'connected'-state. Then you should be able, to
watch or step through the packet-oriented roundtrip,
since this socketstate (a fully established connection)
is "more robust".

Olaf


.



Relevant Pages

  • Re: What doesnt lend itself to OO?
    ... >> proxy and instructs the server to constuct the real object. ... rather than client code. ... If 'clock' is instantiated in the server, ... > for the server interface at the OOA level. ...
    (comp.object)
  • This is going straight to the pool room
    ... or not the client has privilege to do what they're trying to do, ... The server environment is this: ... 3GL User action Routines that Tier3 will execute on your behalf during the ... Routine Name: USER_INIT ...
    (comp.os.vms)
  • [Full-Disclosure] R: Full-Disclosure Digest, Vol 3, Issue 42
    ... Full-Disclosure Digest, Vol 3, Issue 42 ... SD Server 4.0.70 Directory Traversal Bug ... Arkeia Network Backup Client Remote Access ...
    (Full-Disclosure)
  • Re: What doesnt lend itself to OO?
    ... > rather than client code. ... no way to do that without also touching the object with clock semantics ... will not encapsulate both clock semantics and network semantics. ... The server can do whatever it wants ...
    (comp.object)
  • RE: Fax monitor incoming + outgoing calls?
    ... problem between the client computer and the SBS server. ... Client is using the internal IP address of the SBS server as the ... To the folder redirection GPO issue: ...
    (microsoft.public.windows.server.sbs)