By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,766 Members | 1,432 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,766 IT Pros & Developers. It's quick & easy.

problem in Trying to include new address family in socketmodule.c

P: n/a
i am trying to include a new Address family (PF_CAN) in the extension
module of socket - socketmodule.c... At first i am just trying to
create a socket. When I use
s=socket.socket(socket.AF_INET, socket.SOCK_STREAM), a socket is
created at a address
but
s=socket.socket(socket.PF_CAN, socket.SOCK_RAW), it gives an errror (
97: Address family not supported")
The PF_CAN is a family from the CAN family and the test cases made in C
language are currently working fine. like the statement works
absolutely fine -->
s = socket(PF_CAN, SOCK_RAW, CAN_RAW))
But I would like to design test cases with Python.
What are the changes required to add this address family also in the
socket extension module ??

Regards

Vikas

Jul 19 '06 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.