Added a function to the BPortLink debugging code

Made a couple of style tweaks to BApplication::connect_to_app_server


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8620 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
DarkWyrm
2004-08-22 00:22:51 +00:00
parent f9ed3ba7d5
commit bceb8166d4
2 changed files with 358 additions and 3 deletions
+4 -2
View File
@@ -971,11 +971,13 @@ void BApplication::connect_to_app_server()
link.Flush();
link.GetNextReply(&code);
// Reply code: AS_SET_SERVER_PORT
// Reply code: SERVER_TRUE
// Reply data:
// 1) port_id server-side application port (fServerFrom value)
if(code==AS_SET_SERVER_PORT)
if(code==SERVER_TRUE)
link.Read<port_id>(&fServerFrom);
else
debugger("BApplication: couldn't obtain new app_server comm port");
} else
fInitError = fServerTo;