Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.help > #4354

How to listen and send/receive on the same transport

X-Received by 2002:a05:620a:1536:b0:73b:7c9b:35a7 with SMTP id n22-20020a05620a153600b0073b7c9b35a7mr351371qkk.9.1677581045307; Tue, 28 Feb 2023 02:44:05 -0800 (PST)
X-Received by 2002:aca:2407:0:b0:383:fad3:d19 with SMTP id n7-20020aca2407000000b00383fad30d19mr824798oic.9.1677581045020; Tue, 28 Feb 2023 02:44:05 -0800 (PST)
Path csiph.com!weretis.net!feeder6.news.weretis.net!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups comp.lang.java.help
Date Tue, 28 Feb 2023 02:44:04 -0800 (PST)
Injection-Info google-groups.googlegroups.com; posting-host=83.253.148.91; posting-account=1c_fOgoAAADuOXlL0A4-T9PUmVHtMSYd
NNTP-Posting-Host 83.253.148.91
User-Agent G2/1.0
MIME-Version 1.0
Message-ID <12f1c808-3676-4afc-b2d0-38ea0b967270n@googlegroups.com> (permalink)
Subject How to listen and send/receive on the same transport
From mike <mikaelpetterson@hotmail.com>
Injection-Date Tue, 28 Feb 2023 10:44:05 +0000
Content-Type text/plain; charset="UTF-8"
X-Received-Bytes 1911
Xref csiph.com comp.lang.java.help:4354

Show key headers only | View raw


Hi,

I need some help with an issue I am working on or like bounce ideas.
We have a java client that sends message and listens for 
notifications and sends heartbeats. The notifications listen has been on a separate transport.

Now there is idea to use only one transport (TLS/SSH are the supported ones) to do the same thing. That is:

1. Listen for notifications ( asynchronous).
2. send synchronous messages (when our API is used) and receive reply.
3. send heartbeats at regular intervals to make sure we have an open session ( this is like 2 be it is sent automatically form our client).

Is it possible to listen for notification messages and at the same time send and receive messages/heartbeats on the same transport?

I think I will loose notifications if I start sending messages and waiting for their response.

Any ideas how this can be accomplished in java?

br,

//mike


Back to comp.lang.java.help | Previous | Next | Find similar


Thread

How to listen and send/receive on the same transport mike <mikaelpetterson@hotmail.com> - 2023-02-28 02:44 -0800

csiph-web