Arduino Uno R3

Guys, I'm brazilian, sorry for bad english, i try make SNMP conection in my arduino and my Orion server, but, i dont have sucess, i change my code, then i get a new problem.

then, i'll post two codes, old, and new, remenber, the old code, Dont have error, but Can't connect.

Old code

New Code

the new code have this problem.

Observation, i have ALL library requested by the code.