Click here to Skip to main content
15,892,517 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
My application is a reverse to the normal "client Server" communications in that it needs to work in the reverse method.
The normal client/server system works where the client will initiate a call to the server the server then responds.
I need to have the server initiate the call to the client where the server will use the same connection each time.
There are multiple clients each with their own Ip address.

I should explain, the clients will be industrial print engines where the operator will turn them on and then run the software on a PC to communicate with them.
The printers do not send any command or handshaking until a command is sent to them, they will then reply to the command.
I want to have the clients listed on the server where I can initiate a call to each printer.

I would like to find a way to manually or have preset the client details (ipaddress, port,etc) on the server in the clientlist?

Regards,
Glenn Sharp
<Email removed>

What I have tried:

I have a client/server system running where I can communicate via hyperterm to initiate a connection.
so if I start a connection I can send the commands I need to send that would normally go to the printer.
I am using a "ClientList" to hold the clients as they connect.
I need to manually add a client to the clientlist, it is this part I cannot work out how to do.


VB
Private listClient As TcpClient
    Sub New(ByVal forClient As TcpClient)
        listClient = forClient
        listClient.GetStream.BeginRead(New Byte() {0}, 0, 0, AddressOf ReadAllClient, Nothing)
    End Sub
Posted
Updated 28-Feb-19 13:34pm
v3

1 solution

Quote:
My application is a reverse to the normal "client Server" communications in that it needs to work in the reverse method.
...
I should explain, the clients will be industrial print engines where the operator will turn them on and then run the software on a PC to communicate with them.
The printers do not send any command or handshaking until a command is sent to them, they will then reply to the command.

Looks like a misunderstanding.
All those printer engines are servers to your server, and your server is a client of all those printer engines.
You need to rethink your problem this way and come back when you are stuck.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900