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 - konig

Pages: [1]
1
Network / Re: socket is not being accepted by tcplistener
« on: June 01, 2014, 07:15:56 pm »
Thank you.. as you said there was no error.
I got it.. the window  which I created closed, the program didn't.. the listener was waiting for connections from the socket.

One more request, do know any good multiplayer game making sources for sfml?

2
Network / socket is not being accepted by tcplistener
« on: June 01, 2014, 05:33:00 pm »
The program is huge.. so, I'm just pasting a very small part of it.

Case 1:
    sf::TcpListener listener;
    listener.listen(2001);
    sf::TcpSocket socket;
   std::cout<<"done1\n";
 


Case 2:
    sf::TcpListener listener;
    listener.listen(2001);
    sf::TcpSocket socket;
   std::cout<<"done1\n";
   listener.accept(socket);
   std::cout<<"done2\n";
 

Output for :
Case 1:
done1

Output for Case 2:
done1



done2 does not come in the output. and the program crashes.

Can somebody please tell me what might be going wrong, or where I should look for, for the the error?
Thanks in advance.

3
Network / Re: Find all computers in Network
« on: April 15, 2014, 11:38:35 pm »
Thank you very much.. I will follow up on the details you provided with.

4
Network / Find all computers in Network
« on: April 11, 2014, 01:32:22 am »
Through SFML is there a way to find all the computers connected to a network?

In general is there an automated way/program through which we can find all the computer's Ip addessses connected to a network?

5
Is sfeMovie compatible with sfml 2.1?

6
Graphics / Re: invalid use of 'struct sf::Event::MouseButtonEvent'
« on: March 18, 2014, 11:29:43 am »
Thanks a lot both of you..especially eXpl0it3r
Sorry for the delayed reply.

7
Graphics / invalid use of 'struct sf::Event::MouseButtonEvent'
« on: March 10, 2014, 04:26:25 am »
                    if (event.MouseButtonEvent.button == sf::Mouse::Left){
                       std::cout << "The left mouse button was pressed at X=" << event.MouseButtonEvent.x
                       << "Y=" << event.MouseButtonEvent.y<< "." << std::endl;
                     }

This is my code...

I got three errors, for all the places I used MouseButtonEvent. They all of which show the same error:
 invalid use of 'struct sf::Event::MouseButtonEvent'

Can somebody tell me where I'm going wrong..
Thank You

Pages: [1]
anything