nanogui: Cross-compilation of microwindows


Previous by date: 23 Aug 2005 22:08:15 +0100 Re: Cross-compilation of microwindows, Alex Holden
Next by date: 23 Aug 2005 22:08:15 +0100 Re: Cross-compilation of microwindows, Alex Holden
Previous in thread: 23 Aug 2005 22:08:15 +0100 Re: Cross-compilation of microwindows, Alex Holden
Next in thread: 23 Aug 2005 22:08:15 +0100 Re: Cross-compilation of microwindows, Alex Holden

Subject: Re: [nanogui] Cross-compilation of microwindows
From: Peter Barada ####@####.####
Date: 23 Aug 2005 22:08:15 +0100
Message-Id: <20050823210809.205F798428@baradas.org>

>My first thought is that you may not be performing a bind(),
>followed by a listen(), since we're using UNIX sockets, rather
>than TCP/IP.  Look at some working client/server tcp/ip connect
>code and make sure the server and client use the same
>bind, listen, accept and connect.

Here's the relavant strace output from the server on 192.168.3.6:

write(2, "GsOpenSocket:1824\n", 18GsOpenSocket:1824
)     = 18
socket(PF_INET, SOCK_STREAM, IPPROTO_IP) = 3
setsockopt(3, SOL_SOCKET, SO_REUSEADDR, [1], 4) = 0
write(2, "GsOpenSocket:1857\n", 18GsOpenSocket:1857
)     = 18
bind(3, {sa_family=AF_INET, sin_port=htons(6600), sin_addr=inet_addr("0.0.0.0")}, 16) = 0
write(2, "GsOpenSocket:1863\n", 18GsOpenSocket:1863
)     = 18
listen(3, 5)                            = 0

So it looks like a listen is occurring.
The client strace looks like:

write(2, "GrOpen:341\n", 11GrOpen:341
)            = 11
socket(PF_INET, SOCK_STREAM, IPPROTO_IP) = 3
write(2, "GrOpen:356\n", 11GrOpen:356
)            = 11
gettimeofday({1124831191, 676074}, NULL) = 0
getpid()                                = 17796
open("/etc/resolv.conf", O_RDONLY)      = 4
fstat64(4, {st_mode=S_IFREG|0644, st_size=111, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7f01000
read(4, "; generated by /sbin/dhclient-sc"..., 4096) = 111
read(4, "", 4096)                       = 0
close(4)                                = 0
munmap(0xb7f01000, 4096)                = 0
uname({sys="Linux", node="thunk", ...}) = 0
connect(3, {sa_family=AF_INET, sin_port=htons(6600), sin_addr=inet_addr("192.168.3.6")}, 16) = -1 EHOSTUNREACH (No route to host)
nanosleep({0, 100000000}, NULL)         = 0
write(2, "nxclient: error No route to host"..., 57nxclient: error No route to host retry connect attempt 1
) = 57

Which looks correct, at least to me.  Any ideas???

-- 
Peter Barada
####@####.####

Previous by date: 23 Aug 2005 22:08:15 +0100 Re: Cross-compilation of microwindows, Alex Holden
Next by date: 23 Aug 2005 22:08:15 +0100 Re: Cross-compilation of microwindows, Alex Holden
Previous in thread: 23 Aug 2005 22:08:15 +0100 Re: Cross-compilation of microwindows, Alex Holden
Next in thread: 23 Aug 2005 22:08:15 +0100 Re: Cross-compilation of microwindows, Alex Holden


Powered by ezmlm-browse 0.20.