[asterisk-commits] branch mogorman/asterisk-xmpp r17990 -
/team/mogorman/asterisk-xmpp/res/stun/
asterisk-commits at lists.digium.com
asterisk-commits at lists.digium.com
Thu Apr 6 12:37:44 MST 2006
Author: mogorman
Date: Thu Apr 6 14:37:43 2006
New Revision: 17990
URL: http://svn.digium.com/view/asterisk?rev=17990&view=rev
Log:
added features to check result of request, should
be just about done with wrapper.
Modified:
team/mogorman/asterisk-xmpp/res/stun/main.c
team/mogorman/asterisk-xmpp/res/stun/stunwrapper.cpp
Modified: team/mogorman/asterisk-xmpp/res/stun/main.c
URL: http://svn.digium.com/view/asterisk/team/mogorman/asterisk-xmpp/res/stun/main.c?rev=17990&r1=17989&r2=17990&view=diff
==============================================================================
--- team/mogorman/asterisk-xmpp/res/stun/main.c (original)
+++ team/mogorman/asterisk-xmpp/res/stun/main.c Thu Apr 6 14:37:43 2006
@@ -5,11 +5,6 @@
hott=insertstun();
cold = insertstun();
printf("HELLO \n");
- printf("HELLO %d\n",getSrcPort(hott));
- printf("HELLO %d\n",getSrcPort(cold));
- setSrcPort(cold,7);
- setSrcPort(hott,4);
- printf("HELLO %d\n",getSrcPort(hott));
- printf("HELLO %d\n",getSrcPort(cold));
+ printf("HELLO %d\n",getRetVal(hott,0));
return 0;
}
Modified: team/mogorman/asterisk-xmpp/res/stun/stunwrapper.cpp
URL: http://svn.digium.com/view/asterisk/team/mogorman/asterisk-xmpp/res/stun/stunwrapper.cpp?rev=17990&r1=17989&r2=17990&view=diff
==============================================================================
--- team/mogorman/asterisk-xmpp/res/stun/stunwrapper.cpp (original)
+++ team/mogorman/asterisk-xmpp/res/stun/stunwrapper.cpp Thu Apr 6 14:37:43 2006
@@ -32,6 +32,11 @@
return mynode->srcPort;
};
+ int getRetVal(Node *mynode, int i)
+ {
+ return mynode->retval[i];
+ };
+
void setSrcPort(Node *mynode,int i)
{
mynode->srcPort = i;
@@ -144,6 +149,12 @@
return wrapper.getSrcPort(mynode);
}
+ int getRetVal(void *pointer, int i)
+ {
+ Node *mynode = (struct Node *)pointer;
+ return wrapper.getRetVal(mynode, i);
+ }
+
void setSrcPort(void *pointer, int i)
{
Node *mynode = (struct Node *)pointer;
More information about the asterisk-commits
mailing list