[Kde-games-devel] setDiscoveryInfo ?
Kleag
kleag at free.fr
Fri Aug 19 15:15:47 CEST 2005
It's more like that:
socket(PF_INET, SOCK_STREAM, IPPROTO_IP) = 10
getsockname(10, {sa_family=AF_INET, sin_port=htons(0),
sin_addr=inet_addr("0.0.0.0")}, [16]) = 0
getpeername(10, 0xbfffdff0, [128]) = -1 ENOTCONN (Transport endpoint is
not connected)
setsockopt(10, SOL_SOCKET, SO_REUSEADDR, [1], 4) = 0
bind(10, {sa_family=AF_INET, sin_port=htons(20000),
sin_addr=inet_addr("0.0.0.0")}, 16) = 0
getsockname(10, {sa_family=AF_INET, sin_port=htons(20000),
sin_addr=inet_addr("0.0.0.0")}, [16]) = 0
getpeername(10, 0xbfffdfa0, [128]) = -1 ENOTCONN (Transport endpoint is
not connected)
listen(10, 0) = 0
ioctl(5, FIONREAD, [1]) = 0
stat64("/home/gael/.kde/share/config/", {st_mode=S_IFDIR|0700,
st_size=8192, ...}) = 0
stat64("/home/gael/.kde/share/config/", {st_mode=S_IFDIR|0700,
st_size=8192, ...}) = 0
access("/home/gael/.kde/share/config/kdnssdrc", W_OK) = -1 ENOENT (No such
file or directory)
access("/home/gael/.kde/share/config/kdnssdrc", F_OK) = -1 ENOENT (No such
file or directory)
access("/home/gael/.kde/share/config", W_OK) = 0
lstat64("/home/gael/.kde/share/config/kdnssdrc", 0x828d848) = -1 ENOENT (No
such file or directory)
stat64("/home/gael/.kde/share/config/kdnssdrc", 0x828d848) = -1 ENOENT (No
such file or directory)
lstat64("/home/gael/.kde/share/config/kdnssdrc", 0x828deb8) = -1 ENOENT (No
such file or directory)
stat64("/home/gael/.kde/share/config/kdnssdrc", 0x828deb8) = -1 ENOENT (No
such file or directory)
stat64("/home/gael/.kde/share/config/kdeglobals", {st_mode=S_IFREG|0600,
st_size=9065, ...}) = 0
stat64("/home/gael/kde3.4.1/share/config/kdeglobals", 0xbfffd920) = -1 ENOENT
(No such file or directory)
access("/etc/kderc", R_OK) = -1 ENOENT (No such file or
directory)
stat64("/home/gael/.kde/share/config/system.kdeglobals", 0xbfffd920) = -1
ENOENT (No such file or directory)
stat64("/home/gael/kde3.4.1/share/config/system.kdeglobals", 0xbfffd920) = -1
ENOENT (No such file or directory)
open("/home/gael/.kde/share/config/kdeglobals", O_RDONLY|O_LARGEFILE) = 12
fstat64(12, {st_mode=S_IFREG|0600, st_size=9065, ...}) = 0
fstat64(12, {st_mode=S_IFREG|0600, st_size=9065, ...}) = 0
mmap2(NULL, 9065, PROT_READ, MAP_PRIVATE, 12, 0) = 0xb63e5000
fstat64(12, {st_mode=S_IFREG|0600, st_size=9065, ...}) = 0
rt_sigaction(SIGBUS, {0xb767f390, [], SA_ONESHOT}, {SIG_DFL}, 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
fstat64(12, {st_mode=S_IFREG|0600, st_size=9065, ...}) = 0
munmap(0xb63e5000, 9065) = 0
rt_sigaction(SIGBUS, {SIG_DFL}, NULL, 8) = 0
close(12) = 0
stat64("/home/gael/.kde/share/config/kdnssdrc", 0xbfffd920) = -1 ENOENT (No
such file or directory)
stat64("/home/gael/kde3.4.1/share/config/kdnssdrc", 0xbfffd920) = -1 ENOENT
(No such file or directory)
access("/home/gael/.kde/share/config/kdnssdrc", W_OK) = -1 ENOENT (No such
file or directory)
access("/home/gael/.kde/share/config/kdnssdrc", F_OK) = -1 ENOENT (No such
file or directory)
access("/home/gael/.kde/share/config", W_OK) = 0
lstat64("/home/gael/.kde/share/config/kdnssdrc", 0x828da80) = -1 ENOENT (No
such file or directory)
stat64("/home/gael/.kde/share/config/kdnssdrc", 0x828da80) = -1 ENOENT (No
such file or directory)
lstat64("/home/gael/.kde/share/config/kdnssdrc", 0x828da80) = -1 ENOENT (No
such file or directory)
stat64("/home/gael/.kde/share/config/kdnssdrc", 0x828da80) = -1 ENOENT (No
such file or directory)
stat64("/home/gael/.kde/share/config/kdeglobals", {st_mode=S_IFREG|0600,
st_size=9065, ...}) = 0
stat64("/home/gael/kde3.4.1/share/config/kdeglobals", 0xbfffdb10) = -1 ENOENT
(No such file or directory)
access("/etc/kderc", R_OK) = -1 ENOENT (No such file or
directory)
stat64("/home/gael/.kde/share/config/system.kdeglobals", 0xbfffdb10) = -1
ENOENT (No such file or directory)
stat64("/home/gael/kde3.4.1/share/config/system.kdeglobals", 0xbfffdb10) = -1
ENOENT (No such file or directory)
open("/home/gael/.kde/share/config/kdeglobals", O_RDONLY|O_LARGEFILE) = 12
fstat64(12, {st_mode=S_IFREG|0600, st_size=9065, ...}) = 0
fstat64(12, {st_mode=S_IFREG|0600, st_size=9065, ...}) = 0
mmap2(NULL, 9065, PROT_READ, MAP_PRIVATE, 12, 0) = 0xb63e5000
fstat64(12, {st_mode=S_IFREG|0600, st_size=9065, ...}) = 0
rt_sigaction(SIGBUS, {0xb767f390, [], SA_ONESHOT}, {SIG_DFL}, 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
fstat64(12, {st_mode=S_IFREG|0600, st_size=9065, ...}) = 0
munmap(0xb63e5000, 9065) = 0
rt_sigaction(SIGBUS, {SIG_DFL}, NULL, 8) = 0
close(12) = 0
stat64("/home/gael/.kde/share/config/kdnssdrc", 0xbfffdb10) = -1 ENOENT (No
such file or directory)
stat64("/home/gael/kde3.4.1/share/config/kdnssdrc", 0xbfffdb10) = -1 ENOENT
(No such file or directory)
socket(PF_FILE, SOCK_STREAM, 0) = 12
connect(12, {sa_family=AF_FILE, path="/var/run/mdnsd"}, 110) = -1 ENOENT (No
such file or directory)
rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0
rt_sigaction(SIGCHLD, NULL, {0xb7683ee0, [], SA_RESTART|SA_NOCLDSTOP}, 8) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
nanosleep({1, 0}, {1, 0}) = 0
connect(12, {sa_family=AF_FILE, path="/var/run/mdnsd"}, 110) = -1 ENOENT (No
such file or directory)
rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0
rt_sigaction(SIGCHLD, NULL, {0xb7683ee0, [], SA_RESTART|SA_NOCLDSTOP}, 8) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
nanosleep({1, 0}, {1, 0}) = 0
connect(12, {sa_family=AF_FILE, path="/var/run/mdnsd"}, 110) = -1 ENOENT (No
such file or directory)
rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0
rt_sigaction(SIGCHLD, NULL, {0xb7683ee0, [], SA_RESTART|SA_NOCLDSTOP}, 8) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
nanosleep({1, 0}, {1, 0}) = 0
connect(12, {sa_family=AF_FILE, path="/var/run/mdnsd"}, 110) = -1 ENOENT (No
such file or directory)
rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0
rt_sigaction(SIGCHLD, NULL, {0xb7683ee0, [], SA_RESTART|SA_NOCLDSTOP}, 8) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
nanosleep({1, 0}, {1, 0}) = 0
If usefule, here is my network setup: wifi DHCP connection to an adsl access
point. firewall configuration is the default Mandrake Shorewall one. ifconfig
gives:
eth0 Lien encap:Ethernet HWaddr 00:0F:1F:0D:9E:A0
adr inet6: fe80::20f:1fff:fe0d:9ea0/64 Scope:Lien
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 lg file transmission:1000
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
Interruption:11
eth1 Lien encap:UNSPEC HWaddr
39-4F-C0-00-11-E2-0C-30-00-00-00-00-00-00-00-00
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 lg file transmission:1000
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
eth2 Lien encap:Ethernet HWaddr 00:0C:F1:25:3E:92
inet adr:192.168.0.2 Bcast:192.168.0.255 Masque:255.255.255.0
adr inet6: fe80::20c:f1ff:fe25:3e92/64 Scope:Lien
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:23812 errors:1 dropped:0 overruns:0 frame:0
TX packets:51812 errors:0 dropped:0 overruns:0 carrier:1
collisions:0 lg file transmission:1000
RX bytes:9092205 (8.6 Mb) TX bytes:4766820 (4.5 Mb)
Interruption:5 Adresse de base:0xc000 Mémoire:fafee000-fafeefff
lo Lien encap:Boucle locale
inet adr:127.0.0.1 Masque:255.0.0.0
adr inet6: ::1/128 Scope:Hôte
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:66 errors:0 dropped:0 overruns:0 frame:0
TX packets:66 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 lg file transmission:0
RX bytes:4540 (4.4 Kb) TX bytes:4540 (4.4 Kb)
sit0 Lien encap:IPv6-dans-IPv4
adr inet6: ::127.0.0.1/96 Scope:Inconnu
UP RUNNING NOARP MTU:1480 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 lg file transmission:0
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
Le Vendredi 19 Août 2005 14:48, Jakub Stachowski a écrit :
> Dnia piątek, 19 sierpnia 2005 14:28, Kleag napisał:
> > Le Vendredi 19 Août 2005 13:42, Jakub Stachowski a écrit :
> > > Dnia czwartek, 18 sierpnia 2005 23:27, Kleag napisał:
> > > > Hello,
> > > >
> > > > What is the goal of the (undocumented) KGameNetwork::setDiscoveryInfo
> > > > function introduced in kde 3.4 ?
>
> OK. It is no longer undocumented :-)
Thank you !
>
> > > > I tried no to use it and it works even better: a 5 to 10 seconds
> > > > freeze disappear...
> > >
> > > Could you send me strace output with timestamps?
> >
> > With the code you give and the command line below, the freeze is still
> > there. I attach the result.
> > strace -o ksirk.strace -c -r -f -F -t -tt ksirk
> >
> > Is it the data you expected ?
>
> It does not show me what is hanging but i think i found the reason.
> Does output from 'strace ksirk' looks like that (during the hang): ?
>
> fcntl64(13, F_SETFD, FD_CLOEXEC) = 0
> setsockopt(13, SOL_IPV6, IPV6_V6ONLY, [0], 4) = 0
> bind(13, {sa_family=AF_INET6, sin6_port=htons(54321), inet_pton(AF_INET6,
> "::", &sin6_addr), sin6_flowinfo=0, sin6_scope_id=0}, 28) = 0
> listen(13, 5) = 0
> socket(PF_FILE, SOCK_STREAM, 0) = 14
> connect(14, {sa_family=AF_FILE, path="/var/run/mdnsd"}, 110) = -1
> ECONNREFUSED (Connection refused)
> rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0
> rt_sigaction(SIGCHLD, NULL, {0x41e71c30, [], SA_RESTART|SA_NOCLDSTOP}, 8) =
> 0 rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
> nanosleep({1, 0}, {1, 0}) = 0
> connect(14, {sa_family=AF_FILE, path="/var/run/mdnsd"}, 110) = -1
> ECONNREFUSED (Connection refused)
> rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0
> rt_sigaction(SIGCHLD, NULL, {0x41e71c30, [], SA_RESTART|SA_NOCLDSTOP}, 8) =
> 0 rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
> nanosleep({1, 0}, {1, 0}) = 0
> connect(14, {sa_family=AF_FILE, path="/var/run/mdnsd"}, 110) = -1
> ECONNREFUSED (Connection refused)
> rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0
> rt_sigaction(SIGCHLD, NULL, {0x41e71c30, [], SA_RESTART|SA_NOCLDSTOP}, 8) =
> 0 rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
> nanosleep({1, 0}, {1, 0}) = 0
> connect(14, {sa_family=AF_FILE, path="/var/run/mdnsd"}, 110) = -1
> ECONNREFUSED (Connection refused)
> close(14) = 0
>
> > Kleag
>
> _______________________________________________
> kde-games-devel mailing list
> kde-games-devel at kde.org
> https://mail.kde.org/mailman/listinfo/kde-games-devel
--
KsirK - a turn-based strategy game for KDE
http://gna.org/projects/ksirk
KGraphViewer - a GraphViz dot graphs viewer
http://gna.org/projects/kgraphviewer
More information about the kde-games-devel
mailing list