Results 1 to 2 of 2
  1. #1
    Sime is offline Member
    Join Date
    May 2013
    Posts
    1
    Rep Power
    0

    Default Synchronization between GUI and sockets

    I'm planning a game based on a chessboard with client / server architecture

    I have already made the client with its graphical interface. Regarding the server I wrote the logic of the game including the part concerning the communication via TCP / IP using sockets

    I have trouble writing the communication using sockets, side of the client.

    I'm using the SWT libraries, and create my GUI with Window Builder (Eclipse plugin) and inside use a Canvas to draw my chessboard.

    I have this problem: in the client side how do I handle events that I come from the GUI and I come from the socket?:

    The GUI in SWT have to infinity main loop, it blocks my application

  2. #2
    rfq
    rfq is offline Member
    Join Date
    Mar 2012
    Location
    Novosibirsk, Russia
    Posts
    15
    Rep Power
    0

Similar Threads

  1. Need help with synchronization
    By boblettoj99 in forum Threads and Synchronization
    Replies: 1
    Last Post: 05-08-2012, 03:22 AM
  2. Thread synchronization
    By rajanis in forum Threads and Synchronization
    Replies: 3
    Last Post: 02-18-2011, 12:30 PM
  3. Synchronization Problem
    By T3X4S in forum New To Java
    Replies: 0
    Last Post: 09-17-2010, 05:35 AM
  4. Animation Synchronization
    By dreadrocksean in forum Advanced Java
    Replies: 5
    Last Post: 08-08-2008, 02:56 AM
  5. Synchronization problems
    By Jack in forum Advanced Java
    Replies: 2
    Last Post: 07-02-2007, 01:17 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •