lh=.bsf~bsf.import('java.net.InetAddress') ~getLocalHost socket2server=.bsf~new('java.net.Socket', lh, 8888) --connect to Server --client connect, can now read its data outputStream =socket2server~getOutputStream outputStreamWriter=.bsf~new("java.io.OutputStreamWriter", outputStream) bufferedWriter =.bsf~new("java.io.BufferedWriter", outputStreamWriter) --get text from user and send it to the server LF="0a"x bufferedWriter ~~write( "Ausgabe der Client-Eingabe" || LF) ~flush bufferedWriter ~~write( "'zoll', 'Fuß'" || LF) ~flush say "'zoll', 'Fuß'" do until string="" parse pull string bufferedWriter ~~write( string || LF) ~flush end ::requires BSF.CLS --get java support