No problem. Try to follow the steps that I mentioned and it should make it easier. If you are working on a computer science degree at the moment the biggest thing you should focus on when trying to learn something new is to break it down into small steps. A bit like the merge sort algorithm...."divide and conquer" :-)
Can you please tell us, what is the device you are using. Maybe you are trying to go with wrong way and there exists another easier way.
I understand what you mean. The outgoing ports are dynamically/randomly assigned. The destination port is set in the Talend component. In Linux you can use
to limit the port numbers used as a source ports, but the minimum is 1000 ports (I think).
In Java there is a bind() method which is able to do this, but it looks it is not implemented in either tSocketInput nor tSocketOutput.
Please paste here the device you are using. Maybe there is a different way.
In Linux, you can create a socket file. It is a TCP/UDP connection where client endpoint acts as a file on file system.
After you will be able to communicate via this file using tFileInputRaw and tFileOutputRaw... But please, consider this as an idea. Maybe it is a stupid idea.
now I have programmed the socket programming via Java. The problem via tSocketInput and tSocketOutput has now been bridged.
Talend named a Leader.
Kickstart your first data integration and ETL projects.
Take a look at this technical overview video of Talend API Designer
Find out how to get started with APIs