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.


Topics - KageJittai

Pages: [1]
1
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

2
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.

3
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?

4
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