telephonyprotocols/pdplayer/umts/test/te_spudNetworkSide/src/te_spudNetworkSideSteps.cpp
equal
deleted
inserted
replaced
1 // Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). |
1 // Copyright (c) 2005-2010 Nokia Corporation and/or its subsidiary(-ies). |
2 // All rights reserved. |
2 // All rights reserved. |
3 // This component and the accompanying materials are made available |
3 // This component and the accompanying materials are made available |
4 // under the terms of "Eclipse Public License v1.0" |
4 // under the terms of "Eclipse Public License v1.0" |
5 // which accompanies this distribution, and is available |
5 // which accompanies this distribution, and is available |
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
1271 localAddr.SetPort(KConfiguredTftFilter1DestPort); |
1271 localAddr.SetPort(KConfiguredTftFilter1DestPort); |
1272 TestL(iSocket.Bind(localAddr), _L("Binding the local Socket")); |
1272 TestL(iSocket.Bind(localAddr), _L("Binding the local Socket")); |
1273 |
1273 |
1274 TInetAddr dstAddr; |
1274 TInetAddr dstAddr; |
1275 dstAddr.SetPort(KConfiguredTftFilter1SrcPort); |
1275 dstAddr.SetPort(KConfiguredTftFilter1SrcPort); |
1276 dstAddr.Input(KConfiguredTftFilter1SrcAddr); |
1276 |
|
1277 TPtrC ip6Addr; |
|
1278 if(GetStringFromConfig(ConfigSection(), _L("IP6Addr"), ip6Addr)) |
|
1279 { |
|
1280 dstAddr.Input(ip6Addr); |
|
1281 } |
|
1282 else |
|
1283 { |
|
1284 dstAddr.Input(KConfiguredTftFilter1SrcAddr); |
|
1285 } |
1277 |
1286 |
1278 iSocket.Connect(dstAddr, status); |
1287 iSocket.Connect(dstAddr, status); |
1279 User::WaitForRequest(status); |
1288 User::WaitForRequest(status); |
1280 TestL(status.Int(), _L("RSocket::Connect status opening primary socket")); |
1289 TestL(status.Int(), _L("RSocket::Connect status opening primary socket")); |
1281 } |
1290 } |