Please note that the CVS and issue trackers have moved to GitHub. These Trac pages are no longer kept up-to-date.

root/seattle/branches/nacl_repy/seattlelib/tests/ut_lind_net_connect_basic_udp.py

Revision 5528, 0.5 KB (checked in by cmatthew, 5 years ago)

Make connect re-callable.
Fix getdents test, since new default inode number exists.

Line 
1import lind_test_server
2
3
4from lind_net_constants import *
5
6SyscallError = lind_test_server.SyscallError
7
8# let's do a few basic things with connect.   This will be UDP only for now...
9
10sockfd = lind_test_server.socket_syscall(AF_INET, SOCK_DGRAM, 0)
11
12# should be okay...
13lind_test_server.connect_syscall(sockfd,'127.0.0.1',50103)
14
15# bind will not be interesting...
16#lind_test_server.bind_syscall(sockfd,'127.0.0.1',50102)
17
18
19# I should be able to retarget it...
20lind_test_server.connect_syscall(sockfd,'127.0.0.1',50104)
21
Note: See TracBrowser for help on using the browser.