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