View Full Version : Problem with socket programming
Shaias
03-31-2002, 12:28 AM
Hi, when I'm trying to run the socket applet, but I get err 529 in connectCB callback function, what does it mean?
I'm using the 127.0.0.1 IP Address, also it doesn't work with the original address.
thanks
shai
torija
03-31-2002, 06:03 PM
You can find below in AEEError.h file.
#define NET_ERROR_BASE (0x200)
...
#define AEE_NET_EADDRINUSE (NET_ERROR_BASE+11) // Address already in use
decimal 529 equals in hex 0x211.
All Error codes are in AEEError.h file.
You need to search it whenever you have an error.
Shaias
04-02-2002, 01:06 AM
Thanks, but what does it mean "Address already in use" ?
the 127.0.0.1 address is usually use as loop back address
and what ip address should I use to make the socket example
work?
thanks
shai
Yusuke Kubo
04-02-2002, 09:35 PM
Hi,
Error code 529 equals 512+17, so it means
#define NET_ERROR_BASE (0x200)
.
.
.
<b>#define AEE_NET_ECONNREFUSED (NET_ERROR_BASE+17) //Connection attempt refused</b>
Note that the number "17" in this line is decimal one.
And, IP address 127.0.0.1 is used for BREW emulator itself. (NOT for your PC.)
So if you don't mean to connect your BREW emulator itself, please use another IP address (e.g., your PC's local IP address like 192.168.0.1.).
Hope this helps,
Yusuke
torija
04-03-2002, 03:20 AM
it' my mistake.
decimal 529 is equal to hex 0x200 + decimal 17.
Thanks for your reply.
vBulletin v3.0.13, Copyright ©2000-2009, Jelsoft Enterprises Ltd.