Lines Matching refs:ss
32 extern int parse(JNIEnv *env, jstring jAddress, int port, sockaddr_storage *ss);
42 sockaddr_storage ss; in create() local
43 if (parse(env, jAddress, 0, &ss) < 0) { in create()
48 int socket = ::socket(ss.ss_family, SOCK_DGRAM, 0); in create()
49 socklen_t len = sizeof(ss); in create()
50 if (socket == -1 || bind(socket, (sockaddr *)&ss, sizeof(ss)) != 0 || in create()
51 getsockname(socket, (sockaddr *)&ss, &len) != 0) { in create()
57 uint16_t *p = (ss.ss_family == AF_INET) ? in create()
58 &((sockaddr_in *)&ss)->sin_port : &((sockaddr_in6 *)&ss)->sin6_port; in create()
66 socket = ::socket(ss.ss_family, SOCK_DGRAM, 0); in create()
77 if (bind(socket, (sockaddr *)&ss, sizeof(ss)) == 0) { in create()