I haven't used that library, but it looks as if it provides an API which lets you send and receive PDUs (protocol data units aka messages). If you're accepting SNMP requests then you'd receive the requests and send the responses; if you're initiating the requests you'd send the requests and get back the responses. The same API works in either case.