Update of /cvsroot/wpdev/wolfpack/python
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv17241/python
Modified Files:
socket.cpp
Log Message:
New property: socket.address
Index: socket.cpp
===================================================================
RCS file: /cvsroot/wpdev/wolfpack/python/socket.cpp,v
retrieving revision 1.78
retrieving revision 1.79
diff -C2 -d -r1.78 -r1.79
*** socket.cpp 15 Jun 2004 02:44:46 -0000 1.78
--- socket.cpp 17 Jul 2004 11:34:36 -0000 1.79
***************
*** 831,840 ****
--- 831,849 ----
static PyObject* wpSocket_getAttr( wpSocket* self, char* name )
{
+ /*
+ \rproperty socket.player The <object id="CHAR">char</object> object for the player played by this socket. May be None.
+ */
if ( !strcmp( name, "player" ) )
return PyGetCharObject( self->pSock->player() );
+ /*
+ \rproperty socket.screenwidth The width of the game window in pixels as sent by the client.
+ */
else if ( !strcmp( name, "screenwidth" ) )
{
return PyInt_FromLong( self->pSock->screenWidth() );
}
+ /*
+ \rproperty socket.screenheight The height of the game window in pixels as sent by the client.
+ */
else if ( !strcmp( name, "screenheight" ) )
{
***************
*** 845,854 ****
return PyInt_FromLong( self->pSock->walkSequence() );
}
else if ( !strcmp( name, "account" ) )
{
return PyGetAccountObject( self->pSock->account() );
}
! else
! {
return Py_FindMethod( wpSocketMethods, ( PyObject * ) self, name );
}
--- 854,870 ----
return PyInt_FromLong( self->pSock->walkSequence() );
}
+ /*
+ \rproperty socket.account An <object id="account">account</object> object for the account used by this socket. Should not be None.
+ */
else if ( !strcmp( name, "account" ) )
{
return PyGetAccountObject( self->pSock->account() );
}
! /*
! \rproperty socket.address A string containing the IP address this socket is connected to.
! */
! else if (!strcmp(name, "address")) {
! return QString2Python(self->pSock->ip());
! } else {
return Py_FindMethod( wpSocketMethods, ( PyObject * ) self, name );
}
|