[Pyrex] numeric C pointer argument and python integer argument
Daniele Pianu
muogoro at gmail.com
Wed Apr 9 17:50:18 CEST 2008
I've a C function like this
void Socket_getRemoteAddr<file:///home/daniele/.HRI/Proxy/HRI/Libraries/Socket/2.0/doc/html/Socket_8h.html#74523edd41cdf2247e109cc58429ca30>(
Socket<file:///home/daniele/.HRI/Proxy/HRI/Libraries/Socket/2.0/doc/html/structSocket.html>*self,
char *serverHostAddr, int bufferSize, int *serverPortNo)
and I want to wrap it on this python method
def setRemoteAddr( self, serverHostAddr, serverPortNo )
serverPortNo is a python integer, and it must reflect modifications done on
the relative C argument (serverPortNo). How can I do it in pyrex?
P.S.: sorry for my very bad english :)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.copyleft.no/pipermail/pyrex/attachments/20080409/8f5055fa/attachment.html
More information about the Pyrex
mailing list