Back to index

python3.2  3.2.2
Public Member Functions
test.test_socket.TIPCTest Class Reference

List of all members.

Public Member Functions

def testRDM

Detailed Description

Definition at line 1872 of file test_socket.py.


Member Function Documentation

Definition at line 1873 of file test_socket.py.

01873 
01874     def testRDM(self):
01875         srv = socket.socket(socket.AF_TIPC, socket.SOCK_RDM)
01876         cli = socket.socket(socket.AF_TIPC, socket.SOCK_RDM)
01877 
01878         srv.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
01879         srvaddr = (socket.TIPC_ADDR_NAMESEQ, TIPC_STYPE,
01880                 TIPC_LOWER, TIPC_UPPER)
01881         srv.bind(srvaddr)
01882 
01883         sendaddr = (socket.TIPC_ADDR_NAME, TIPC_STYPE,
01884                 TIPC_LOWER + int((TIPC_UPPER - TIPC_LOWER) / 2), 0)
01885         cli.sendto(MSG, sendaddr)
01886 
01887         msg, recvaddr = srv.recvfrom(1024)
01888 
01889         self.assertEqual(cli.getsockname(), recvaddr)
01890         self.assertEqual(msg, MSG)
01891 

Here is the call graph for this function:


The documentation for this class was generated from the following file: