fayllar.orgma'muriyatiga murojaat qiling
display.appendText( "Created Socket\n" );
output = client.getOutputStream();
display.appendText( "Sending Data .. Hello World\n" );
String s = new String("Hello World \n");
for (int i = 0; i < s.length(); i++)
char c;
while((c = (char) input.read() ) != '\n')
display.appendText( "\nTransmission Complete\n" );
}
e.printStackTrace();
2
public boolean handleEvent( Event e )
if ( e.id == Event.WINDOW_DESTROY ) {
hide();
dispose();
System.exit( 0 );
return super.handleEvent( e );
public s tatic void main( String args[] )
Client c = new Client();
c.runClient();
1