i'm trying build server client program enables them send 1 w/o restriction of being duplex communication
type. have tried using interface runnable
i'm bit confused on how works should create 2 runnable
interfaces 1 receives data , 1 sends data if run in main class ill add them thread
. make chat program run simultaneously??
class serversend implements runnable{ //constructor public server{ //is constructor necessary or should code in run() void? } public void () run{ // //where code should placed??(confused).. }
to implement server-client interface works in network i'd use sockets , connect serversockets. have thread running client , 1 running server accepting new clients.