![]() If you are sure that you've done all of the above and it's still not working, please provide an example of the full code that you are using including the actual Connect call being made etc. If that's what you're trying to do, and you need further help with it, let me know. One as your incoming socket and one as your outgoing. It is possible to implement server-to-server networking in unet by having two sockets (hosts) on either side. handle incoming connections from clients in the ConnectEvent.call AddHost and specify a port along with the HostTopology.when calling Connect, specify the address/port of the server that you are connecting to.call AddHost without specifying a port/address.Obviously when calling AddHost for the server-side, you would specify a port number which is known to clients. Since the client will be the person that calls Connect (the server should never need to call Connect to connect to a client.), the client can then specify the port number of the server to connect to. This causes the socket to be set up on a randomly available port number, based on the OS. NOTE: Extron recommends leaving the default timeout at 5 minutes and. Defines the timeout in milliseconds before a connection is considered to have been disconnected. In my implementation, my client-side calls AddHost without specifying a port. This unit was tested with shielded I/O cables on the peripheral devices. The other option is to somehow re-initialise the network when the timeout occurs, but since my system first uses network discovery to find the host IP address before switching to regular UNET operation, this seems to be a very long way round - I'd much prefer a way to either disable the network timeout or to at least extend it to 20 minutes. In this case, you wouldn't want both the client and the server to use the same port, as this will confuse things. Generally, unet is designed for the client-server model, where one side of the connection is a client (creating the connection to the server) and the other side is a server (accepting connections from many clients). I have a feeling it might be that you are specifying a port, although I can't be 100% sure.
0 Comments
Leave a Reply. |