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

Pages: [1] 2 3
1
Network / Re: Stop sending
« on: February 13, 2015, 03:08:25 am »
I'm sorry, only now understand how it worked the "setBlocking". I'am very stupid. Many apologies.

2
Network / Re: Stop sending
« on: February 10, 2015, 03:28:22 am »
So my friend. It simply stops sending. At first, he is sending and receiving infinitely. However, in the second server stops receiving. My question was: I would have to send and receive even if it was empty packages to continue endlessly?

 :-\

3
Network / [Solved] Stop sending
« on: February 09, 2015, 10:14:26 pm »
In the first all is well, but in the second it stops sending. Must I always send and receive, even if it is an empty socket?

bool client(){
                const char out[] = "Hi, I'm a client";
                if (socket.send(out, sizeof(out), server, PORT) != sf::Socket::Done)
                return false;


                char in[128];
                std::size_t received;
                sf::IpAddress sender;
                unsigned short senderPort;
                if (socket.receive(in, sizeof(in)  , received, sender, senderPort) != sf::Socket::Done)
                return false;

        }

void server(){
                char in[128];
                std::size_t received;
                sf::IpAddress sender;
                unsigned short senderPort;
                if (socket.receive(in, sizeof(in), received, sender, senderPort) != sf::Socket::Done)
                return false;
       
                const char out[] = "";
                if (socket.send(out, sizeof(out), sender, senderPort) != sf::Socket::Done)
                return false;
}
 

Second:

bool client(){
                const char out[] = "Hi, I'm a client";
                if (socket.send(out, sizeof(out), server, PORT) != sf::Socket::Done)
                return false;

                char in[128];
                std::size_t received;
                sf::IpAddress sender;
                unsigned short senderPort;
                if (socket.receive(in, sizeof(in)  , received, sender, senderPort) != sf::Socket::Done)
                return false;

        }

void server(){
                char in[128];
                std::size_t received;
                sf::IpAddress sender;
                unsigned short senderPort;
                if (socket.receive(in, sizeof(in), received, sender, senderPort) != sf::Socket::Done)
                return false;
                /*     
                const char out[] = "";
                if (socket.send(out, sizeof(out), sender, senderPort) != sf::Socket::Done)
                return false;
                */

}
 

4
Network / Re: Network SFML large projects
« on: February 04, 2015, 11:57:11 am »
Thanks

5
Network / Re: Network SFML large projects
« on: February 04, 2015, 11:37:54 am »
About using the UPD and TCP I know. And speaking of the same subject, how can I make a connection with them? In order to send UDP and TCP for the same player in SFML?

And I will start reading about network and protocols. Very thanks for all. :)

6
Network / Re: Network SFML large projects
« on: February 04, 2015, 11:12:28 am »
Could give me some tutorial on how to create my own protocols?

7
Network / Network SFML large projects
« on: February 03, 2015, 01:56:18 pm »
I can use the "API Network" of SFML for large projects? I do not know much about networking, if anyone has any tutorial on this subject, I will be grateful! :)
Example: Dota 2, League of Legends, Ragnarok.

What did I consider in a server with multiple players?

Sorry my english.

8
Graphics / Re: OpenGL to Textures SFML
« on: September 19, 2014, 02:57:53 pm »
Would you like to draw a figure in opengl, and rescues her in texture in SFML.

9
Graphics / OpenGL to Textures SFML
« on: September 18, 2014, 04:15:14 pm »
It is possible to recover the shapes in opengl to textures SFML? sf :: Texture, sf :: RenderTexture ...

10
Graphics / Re: Shaders again
« on: November 27, 2013, 12:12:42 pm »
Thanks, had not read the end  ;D

11
Graphics / Shaders again
« on: November 27, 2013, 11:55:07 am »
I'm trying to deploy these shader in SFML, but I can not, I'm doing the following:

shader.loadFromFile ("img / sa.vert", "img / sa.frag")

http://xissburg.com/pt-br/desfoque-gaussiano-mais-rapido-em-glsl/

12
Graphics / Re: Shaders effects
« on: November 25, 2013, 02:19:11 pm »
Thanks :)

13
Graphics / Re: Shaders effects
« on: November 25, 2013, 01:37:39 pm »
where is it?

14
Graphics / Shaders effects
« on: November 25, 2013, 01:27:14 pm »
Hello, does anyone have some shaders to SFML? I do not quite understand, caught some on the internet but most do not work. = /

If anyone has a website, or some shader, please pass me. :)

15
Graphics / Re: Color changing 2 times
« on: November 14, 2013, 06:08:08 pm »
Thanks very much.

Pages: [1] 2 3