Skip to content

Instantly share code, notes, and snippets.

View jadunawa's full-sized avatar

Judson Dunaway-Barlow jadunawa

  • ASICS Digital
  • Boston, MA
View GitHub Profile

Keybase proof

I hereby claim:

  • I am jadunawa on github.
  • I am judsondb (https://keybase.io/judsondb) on keybase.
  • I have a public key ASDrmmjeQE75-UxJtpfLIaIjRd2Ygt4yD51Ab3CpYWmT7Ao

To claim this, I am signing this object:

@jadunawa
jadunawa / gist:2667456
Created May 12, 2012 16:28
Chat Server Threads
FROM MAIN BACKGROUND CLASS:
public void checkForNewMessages(){
if(serverCreated){
//*check for clients thread
ServerCheckClientsThread serverClients = new ServerCheckClientsThread(server);
serverClients.start();
//*thread to check for new messages coming from clients
ServerCheckMessagesThread serverMessages= new ServerCheckMessagesThread(server);
serverMessages.start();
}