This very simple program waits for a response until read timeout is
thrown:
byte[] data = read bytes from file gntp-request-0.out
Socket s = new Socket("localhost", 23052);
s.setSoTimeout(10000);
InputStream is = s.getInputStream();
OutputStream os = s.getOutputStream();
os.write(data);
os.flush();
is.read(); // Program stops here until timeout
is.close();
os.close();
s.close();
On Sep 10, 10:34 pm, lehphyro <[email protected]> wrote:
> Hi,
>
> I'm developing a java library to allow java apps to send notifications
> to growl using GNTP. Here is a link to the
> project:http://code.google.com/p/jgntp
>
> It supports everything growl for windows supports and I've been
> testing it with growl for windows only. After trying it with growl for
> mac I noticed I get no response for register requests from growl and
> the application is not listed in the registered applications.
>
> I'm sending to growl all the bytes written in this
> file:http://dl.dropbox.com/u/1401233/gntp-request-0.out
>
> You can run this test com.google.code.jgntp.GntpClientIntegrationTest
> from the project to reproduce this.
>
> Any ideas?
>
> Thanks
--
You received this message because you are subscribed to the Google Groups
"Growl Discuss" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/growldiscuss?hl=en.