Skip to main content
-3 votes
1 answer
186 views

I am developing a chat system in Java and evaluating two different approaches for handling communications: SocketChannel with a While Loop – A commonly used method that is straightforward to ...
Andrei Greblă's user avatar
1 vote
1 answer
198 views

I'm trying to use one Server (Backend) as source to transmit data to private channels. Trying as Client another place/machine (mob app / , server/client), connect to private channel to be able to read ...
OsinskiArtur's user avatar
0 votes
1 answer
241 views

The final objective is to be able to take a JSON message from any client, convert it into ISOMsg, and send it to a destination server able to answer ISO 8583 messages ( I use Jpos Server to simulate a ...
Miguel Pascal's user avatar
1 vote
3 answers
433 views

1- As far as my knowledge, we can receive an ISO8583 message from one host do some processing, and forward the message to another host using server.xml, channel.xml, and mux.xml config files. 2- We ...
Miguel Pascal's user avatar
1 vote
0 answers
140 views

I am using pusher_channels_flutter package to get real time notifications. I want to use Presence Channel for Pusher in flutter, below: await pusher.subscribe(` ` channelName: "presence-chat&...
Lê Đình Quý's user avatar
-1 votes
1 answer
85 views

Here's the main part of server code: Selector selector = Selector.open(); ServerSocketChannel serverSocket = ServerSocketChannel.open(); serverSocket.bind(new InetSocketAddress(InetAddress....
msuny-c's user avatar
0 votes
0 answers
44 views

I am using NIO in java to listen to incoming packets from a bunch of IOT devices. My (standard) code to listen to the connections is as follows: try { while (!shutdown) { ...
ranban282's user avatar
  • 186
0 votes
1 answer
66 views

Let's say we're going to write some bytes to a SocketChannel within a writable SelectionKey. // in a single selection loop if (selectedKey.isWritable()) { final var channel = (SocketChannel) ...
Jin Kwon's user avatar
  • 22.4k
0 votes
0 answers
38 views

Is it possible to close the SocketChannel without sending an end of stream message? I want to free the socket resource from an application A but without the other side (application B) noticing it has ...
Hans GD's user avatar
  • 94
1 vote
0 answers
108 views

I'm struggling to understand how to establish secure communication (the handshake) between a client and server using the JSSE library. I've read the documentation and have understood the first few ...
Theodore's user avatar
0 votes
0 answers
66 views

I am using Java NIO and selectors to get instances of SocketChannels. I need to attach each instance of a SocketChannel that I get from the selector to an encryption key that is unique to each ...
Matthew's user avatar
  • 3,976
-1 votes
2 answers
346 views

I have a Socket that connects to a ServerSocketChannel which passes off to another Selector. The client socket sends a one time message of 8 bytes, I successfully read it, but then selector which I ...
Matthew's user avatar
  • 3,976
0 votes
0 answers
80 views

The use case is, in an only reading server, when a shutdown request is received to prevent clients to send more data but do the best effort to process possible data in buffers. I've tried with ...
lujop's user avatar
  • 14k
0 votes
1 answer
91 views

I am trying to create an application where my client program reads the message from echo server. I'm trying to use Future to read the message from the server that will have a larger size than my ...
Raymond Hou's user avatar
0 votes
0 answers
120 views

I am trying to figure out NIO in Java doing some simple client-server project. The case is I have to concurrent clients in cached thread pool executor, who are communicating with single-threaded ...
magladko's user avatar

15 30 50 per page
1
2 3 4 5
18