I'm making an interface by using SOCKET to transfer the data between the Java program and Plant Simulation.
Currently, I am using a simple example to do the experiment on a same computer. Plant Simulation as a client.
Can you please let me know whether I'm using correct method or any changes I want to make it run?
Thank you very much.
Solved! Go to Solution.
after you have sent a message the operating system decides when the message is sent over the network.
Basically it waits until the send buffer is full or there is no more data coming within a time limit.
You can use the method 'setSendBufferSize' to define the size of the send buffer.
To receive data without having a connection to a server socket you need a socket which has the 'Server Socket' checked.