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

Pages: [1]
1
Network / SocketTCP::IsValid() not working?
« on: April 12, 2011, 08:02:16 am »
Quote from: "Laurent"
Quote
Source code can be found here: https://gitorious.org/plasma-game/plasmaserv/trees/master/src

Do you really expect us to browse your entire project to find what's wrong? ;)

A complete (compilable and executable) and minimal source code that reproduces the problem would be much more helpful.


I would had produced a example if I could, but I couldn't reproduce it in the testing I was going, mainly cause it wasn't a bug... it was a feature  :roll:

2
Network / SocketTCP::IsValid() not working?
« on: April 12, 2011, 07:58:55 am »
Actually, I found the issue, it was gdb, it wasn't a crash at all... gdb apparently stops on any signal sent by the OS.  Typing "continue" works, but I wish I knew how to turn this off.

3
Network / SocketTCP::IsValid() not working?
« on: April 12, 2011, 03:49:21 am »
I get this backtrace:

Code: [Select]
Program received signal SIGPIPE, Broken pipe.
0x00007ffff6d37812 in __libc_send (fd=<value optimized out>, buf=0x6388b0, n=6, flags=<value optimized out>)
    at ../sysdeps/unix/sysv/linux/x86_64/send.c:28
28      ../sysdeps/unix/sysv/linux/x86_64/send.c: No such file or directory.
        in ../sysdeps/unix/sysv/linux/x86_64/send.c
(gdb) bt
#0  0x00007ffff6d37812 in __libc_send (fd=<value optimized out>, buf=0x6388b0, n=6, flags=<value optimized out>)
    at ../sysdeps/unix/sysv/linux/x86_64/send.c:28
#1  0x00007ffff7784a9c in sf::SocketTCP::Send(char const*, unsigned long) () from /usr/lib/libsfml-network.so.1.6
#2  0x00007ffff7784ba6 in sf::SocketTCP::Send(sf::Packet&) () from /usr/lib/libsfml-network.so.1.6
#3  0x0000000000413da9 in Packet::send(sf::SocketTCP) ()
#4  0x0000000000410ded in Client::update() ()
#5  0x0000000000413183 in Server::update() ()
#6  0x0000000000412c22 in main ()


When I close my client.  When I try to send the next packet it crashes, even if I perform a SocketTCP::IsValid() check... it wasn't doing this earlier and I have no idea what I changed to make it not work...

Source code can be found here:  https://gitorious.org/plasma-game/plasmaserv/trees/master/src

4
Network / Max Packet Size?
« on: April 08, 2011, 08:51:52 pm »
Hmmm looking at the sf::Packet code, it checks for that a string length is shorter or equal to remaining amount of packet.   So I guess this is safe.  The only real issue I could see is infact sending a bogus packet length

5
Network / Max Packet Size?
« on: April 08, 2011, 08:41:34 pm »
Well... a lot of the security would be input validation after sf::Packet.  But you could probably do some pretty nasty things though the sf::Packet layer.   For example what if you sent a normal size packet that was to read as a string, but for the string length exceeded the end of the packet?

6
Network / Max Packet Size?
« on: April 08, 2011, 09:56:34 am »
Is there a way we can block sending packets of certain sizes.  Since the sf::Packet uses a int32 size header, it can support packets upto 4gigs... but I don't want this to lead to abuse of my server's bandwidth and memory, and such.

7
Network / HTTP / FTP download status
« on: April 08, 2011, 09:52:19 am »
Quote from: "Laurent"
Not yet, but it's planned for SFML 2.x.


Any ETA on SFML 2.0?

8
Network / HTTP / FTP download status
« on: April 08, 2011, 07:17:12 am »
I am using HTTP/FTP to get game updates, which can be quite large.  Is there a way to determine percentage done as it downloads?

9
Window / TextEntered vs. KeyPressed
« on: March 15, 2011, 06:37:15 am »
NVM, I got it working... somehow

10
Window / TextEntered vs. KeyPressed
« on: March 15, 2011, 02:28:25 am »
I have a text box, when players enter text it will display.   I am having issues though as it seems that one key pressed will generate TWO events.

How can I determine which event I should listen to, and when.

Secondly, how can I flag the other events so it can be ignored further down the widget tree.

Pages: [1]
anything