Greeting,

I am trying to use Java API to control outbound socket,

But I am not finding any example


especially about this idea : listen for an incoming connection on a socket, accept the incoming connection from FreeSWITCH, fork a new copy of your process if you want to listen for more connections, and then pass the file number of the socket to new($fd).

so if you can provide me with can example

java example for using new($fd) is enough

thanks for your effort