title: How to get started with Python SCTP stack (pysctp)?
body: <p>I've just installed pysctp from <a href="http://www.epx.com.br/pysctp/" rel="nofollow">http://www.epx.com.br/pysctp/</a>, and I'm having trouble getting the basic example working.  What could I be doing wrong?</p>
  
  <p>I'm on Red Hat Linux.</p>
  
  <pre><code>Python 2.7.2 (default, Oct 25 2011, 10:11:43)
  [GCC 4.1.2 20070626 (Red Hat 4.1.2-14)] on linux2
  Type "help", "copyright", "credits" or "license" for more information.
  &gt;&gt;&gt; import socket
  &gt;&gt;&gt; import sctp
  &gt;&gt;&gt; sk = sctp.sctpsocket_tcp(socket.AF_INET)
  Traceback (most recent call last):
    File "&lt;stdin&gt;", line 1, in &lt;module&gt;
    File "/usr/local/python2.7/lib/python2.7/site-packages/sctp.py", line 1644, in __init__
      sctpsocket.__init__(self, family, TCP_STYLE, sk)
    File "/usr/local/python2.7/lib/python2.7/site-packages/sctp.py", line 1016, in __init__
      self.events = event_subscribe(self)
    File "/usr/local/python2.7/lib/python2.7/site-packages/sctp.py", line 623, in __init__
      self.__dict__.update(self.container._get_events())
    File "/usr/local/python2.7/lib/python2.7/site-packages/sctp.py", line 1356, in _get_events
      return _sctp.get_events(self._sk.fileno())
  IOError: [Errno 22] Invalid argument
  </code></pre>