Welcome, Guest. Please login or register. Did you miss your activation email?

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - drpitch

Pages: 1 [2]
16
Network / Troubles with bi-directional communication.
« on: May 14, 2009, 10:22:20 am »
Hi!

I'm in troubles to make sockets work when server is sending and receiving data. I need some help ;)

There are two server threads(TS1, TS2) and one client thread (TC).

TS1 does:
- Listen
- loop with:
    - Select
    - if it's a new client -> Send message to a dialog window
    - if it's a known client -> Receive (should receive the "POTATOE" string sent by the client [see below]).

TS2 does:
- Receives the message sent to the dialog window (WM_COMMAND) and calls to Send("INIT")

TC does:
- Receive (and it's blocked until TS2 sends the "INIT" string)
- Send("POTATOE")

Well, the thing is that TC receives the INIT string and sends the POTATOE string to the server, but the server doesn't receive "POTATE" but "INIT" string.

I'm launching server and client application on the same host, but this should not be a problem since server and clients are on different ports.

17
General / 1st Demo Using SFML - Only Get Console Window - HELP
« on: March 16, 2009, 09:31:13 pm »
Thanks for your answer, Laurent.

After posting I've used static linking and now it works all fine. It's really weird :|

18
General / 1st Demo Using SFML - Only Get Console Window - HELP
« on: March 16, 2009, 06:04:59 pm »
Hi,

First of all, congratulation to Laurent, you are doing a great job!

Now, I'm getting exactly the same problem. Only the console window is opened when running samples.

I have an usb wheel plugged into computer. As you said, if I unplug it and rerun samples, they work. Moreover, there's a strange behaviour:
- When mouse is moved in opengl sample, the performance of the rendering slows down dramatically. But if I plug the USB joystick when I'm running the sample, the scene runs smooth again, even when if I move the mouse.

Are these bugs fixed on the SVN version?

Thanks!

Pages: 1 [2]