[xSocket-develop] Maybe Problem with ACK
Status: Inactive
Brought to you by:
grro
|
From: Johann H. <ho...@in...> - 2009-02-23 16:36:29
|
Hello, My goal is to write a xSocketClient which can connect to a Script written in Python using the Twisted Framework. So I started experimenting and now I have a Problem. I wrote a simple xSocketServer and from Python I was able to connect to it and to receive and send lines. Everything worked perfectly. BUT: Then I tried it the other way round and it didn't work. I tried to open a NonBlockingConnection to my Server running in Python. The Python Server recognized, that there is a incoming connection, but it seems, that a kind of ACK is missing, because the NonBlockingConnection runs into a timeout (well, I think it's a timeout, because it appears after the defined timeout): Exception in thread "main" java.lang.NullPointerException at org.xsocket.connection.NonBlockingConnection.isDataWriteable(NonBlockingConnection.java:943) at org.xsocket.connection.AbstractNonBlockingStream.ensureStreamIsOpenAndWritable(AbstractNonBlockingStream.java:1533) at org.xsocket.connection.AbstractNonBlockingStream.write(AbstractNonBlockingStream.java:1043) at org.xsocket.connection.AbstractNonBlockingStream.write(AbstractNonBlockingStream.java:1028) at ConnectToTwisted.main(ConnectToTwisted.java:54) So: What kind of answer do I have to send to the client, that he recognizes, that the connection is established? Greetings Joe |