im a c# developer 'n new to java applets,
my client have a server and a web java applet that connects to server using socket
i've got a task to create a c# windows application to do same as the applet.
im just confused, when i saw the applet code, it connects to server, and sends itself to the server!!!
here's the code, can anyone plz help me what's actually happening...
to_server = new Socket(getCodeBase().getHost(), port_of_server);
_OOS = new ObjectOutputStream(to_server.getOutputStream());
is = new DataInputStream(new BufferedInputStream(to_server.getInputStream()));
os = new PrintStream(new BufferedOutputStream(to_server.getOutputStream(), 1024), false);
txtAreaMessages.appendText("Could not Connect...");
// THIS IS THE CODE WHERE IM CONFUSED!!!
ClientNew clientnew = new ClientNew(is, os, txtAreaMessages);
ch_thread = new Thread(this, "abc");
alll is well, but what's with ObjectOutputStream, and why its sending (this) to server??
im asking this question here because i wanna learn it as well :D
it'll be really great help if someone can tell me same to do in c#
i cannot do anthing with the server, i've to convert this to c#
// chall3ng3r //
you cannot change th truth,
but truth can change you