/dports/audio/re/re-0.5.8/include/ |
H A D | re_udp.h | 9 struct udp_sock; 23 int udp_listen(struct udp_sock **usp, const struct sa *local, 25 int udp_connect(struct udp_sock *us, const struct sa *peer); 28 int udp_local_get(const struct udp_sock *us, struct sa *local); 29 int udp_setsockopt(struct udp_sock *us, int level, int optname, 31 int udp_sockbuf_set(struct udp_sock *us, int size); 32 void udp_rxsz_set(struct udp_sock *us, size_t rxsz); 33 void udp_rxbuf_presz_set(struct udp_sock *us, size_t rx_presz); 36 int udp_thread_attach(struct udp_sock *us); 37 void udp_thread_detach(struct udp_sock *us); [all …]
|
/dports/net/pwnat/pwnat-5de412c/ |
H A D | client.c | 56 c->udp_sock = sock_copy(udp_sock); in client_create() 72 if(c->udp_sock) in client_create() 73 sock_free(c->udp_sock); in client_create() 94 dst->udp_sock = sock_copy(src->udp_sock); in client_copy() 95 if(!dst->udp_sock) in client_copy() 144 sock_close(c->udp_sock); in client_disconnect_udp() 155 sock_free(c->udp_sock); in client_free() 172 ret = msg_recv_msg(client->udp_sock, &from, data, data_len, in client_recv_udp_msg() 177 if(!sock_addr_equal(client->udp_sock, &from)) in client_recv_udp_msg() 303 ret = msg_send_msg(client->udp_sock, client->id, msg_type, in client_send_udp_data() [all …]
|
H A D | client.h | 47 socket_t *udp_sock; /* Socket to hold address from UDP client */ member 66 client_t *client_create(uint16_t id, socket_t *tcp_sock, socket_t *udp_sock, 108 if(SOCK_FD(c->udp_sock) >= 0) in client_add_udp_fd_to_set() 109 FD_SET(SOCK_FD(c->udp_sock), set); in client_add_udp_fd_to_set() 120 return SOCK_FD(c->udp_sock) >= 0 ? in client_udp_fd_isset() 121 FD_ISSET(SOCK_FD(c->udp_sock), set) : 0; in client_udp_fd_isset() 133 if(SOCK_FD(c->udp_sock) >= 0) in client_remove_udp_fd_from_set() 134 FD_CLR(SOCK_FD(c->udp_sock), set); in client_remove_udp_fd_from_set()
|
H A D | udpclient.c | 85 socket_t *udp_sock = NULL; in udpclient() local 246 udp_sock = sock_create(phost, pport, ipver, in udpclient() 250 if(!client || !tcp_sock || !udp_sock) in udpclient() 254 if(udp_sock) in udpclient() 255 sock_close(udp_sock); in udpclient() 269 sock_free(udp_sock); in udpclient() 271 udp_sock = NULL; in udpclient() 367 if(udp_sock) in udpclient() 369 sock_close(udp_sock); in udpclient() 370 sock_free(udp_sock); in udpclient() [all …]
|
H A D | udpserver.c | 71 socket_t *udp_sock = NULL; in udpserver() local 193 udp_sock = sock_create((host_str[0] == 0 ? NULL : host_str), port_str, in udpserver() 196 if(!udp_sock) in udpserver() 201 sock_get_str(udp_sock, addrstr, sizeof(addrstr))); in udpserver() 281 FD_SET(SOCK_FD(udp_sock), &read_fds); in udpserver() 322 if(FD_ISSET(SOCK_FD(udp_sock), &read_fds)) in udpserver() 324 ret = msg_recv_msg(udp_sock, udp_from, data, sizeof(data), in udpserver() 376 if(udp_sock) in udpserver() 378 sock_close(udp_sock); in udpserver() 379 sock_free(udp_sock); in udpserver() [all …]
|
/dports/audio/re/re-0.5.8/src/udp/ |
H A D | udp.c | 60 struct udp_sock { 114 struct udp_sock *us = data; 130 static void udp_read(struct udp_sock *us, int fd) 159 struct udp_sock *us_new; 228 struct udp_sock *us = arg; 238 struct udp_sock *us = arg; 260 struct udp_sock *us = NULL; 496 struct udp_sock *us; 583 int udp_sockbuf_set(struct udp_sock *us, int size) 688 int udp_thread_attach(struct udp_sock *us) [all …]
|
/dports/games/retroarch/RetroArch-1.9.7/wii/libogc/lwip/ |
H A D | netio.c | 45 int optval = 1,nport = -1,udp_sock = INVALID_SOCKET; 51 udp_sock = net_socket(AF_INET,SOCK_STREAM,IPPROTO_TCP); 52 if(udp_sock==INVALID_SOCKET) return -1; 64 if(net_connect(udp_sock,(struct sockaddr*)&name,namelen)==-1) { 65 net_close(udp_sock); 68 net_setsockopt(udp_sock,IPPROTO_TCP,TCP_NODELAY,&optval,sizeof(optval)); 70 return udp_sock;
|
/dports/net/hostapd/hostapd-2.9/src/ap/ |
H A D | iapp.c | 169 int udp_sock; member 315 len = recvfrom(iapp->udp_sock, buf, sizeof(buf), 0, in iapp_receive_udp() 390 iapp->udp_sock = iapp->packet_sock = -1; in iapp_init() 396 iapp->udp_sock = socket(PF_INET, SOCK_DGRAM, 0); in iapp_init() 397 if (iapp->udp_sock < 0) { in iapp_init() 406 if (ioctl(iapp->udp_sock, SIOCGIFINDEX, &ifr) != 0) { in iapp_init() 414 if (ioctl(iapp->udp_sock, SIOCGIFADDR, &ifr) != 0) { in iapp_init() 459 if (bind(iapp->udp_sock, (struct sockaddr *) &uaddr, in iapp_init() 523 if (iapp->udp_sock >= 0) { in iapp_deinit() 534 eloop_unregister_read_sock(iapp->udp_sock); in iapp_deinit() [all …]
|
/dports/net/wpa_supplicant_gui/wpa_supplicant-2.9/src/ap/ |
H A D | iapp.c | 169 int udp_sock; member 315 len = recvfrom(iapp->udp_sock, buf, sizeof(buf), 0, in iapp_receive_udp() 390 iapp->udp_sock = iapp->packet_sock = -1; in iapp_init() 396 iapp->udp_sock = socket(PF_INET, SOCK_DGRAM, 0); in iapp_init() 397 if (iapp->udp_sock < 0) { in iapp_init() 406 if (ioctl(iapp->udp_sock, SIOCGIFINDEX, &ifr) != 0) { in iapp_init() 414 if (ioctl(iapp->udp_sock, SIOCGIFADDR, &ifr) != 0) { in iapp_init() 459 if (bind(iapp->udp_sock, (struct sockaddr *) &uaddr, in iapp_init() 523 if (iapp->udp_sock >= 0) { in iapp_deinit() 534 eloop_unregister_read_sock(iapp->udp_sock); in iapp_deinit() [all …]
|
/dports/security/wpa_supplicant/wpa_supplicant-2.9/src/ap/ |
H A D | iapp.c | 169 int udp_sock; member 315 len = recvfrom(iapp->udp_sock, buf, sizeof(buf), 0, in iapp_receive_udp() 390 iapp->udp_sock = iapp->packet_sock = -1; in iapp_init() 396 iapp->udp_sock = socket(PF_INET, SOCK_DGRAM, 0); in iapp_init() 397 if (iapp->udp_sock < 0) { in iapp_init() 406 if (ioctl(iapp->udp_sock, SIOCGIFINDEX, &ifr) != 0) { in iapp_init() 414 if (ioctl(iapp->udp_sock, SIOCGIFADDR, &ifr) != 0) { in iapp_init() 459 if (bind(iapp->udp_sock, (struct sockaddr *) &uaddr, in iapp_init() 523 if (iapp->udp_sock >= 0) { in iapp_deinit() 534 eloop_unregister_read_sock(iapp->udp_sock); in iapp_deinit() [all …]
|
/dports/dns/totd/totd-1.5.1/ |
H A D | ne_io.c | 136 ni->udp_sock = usock; in nia_alloc() 160 fn, ni->udp_sock); in nia_free() 161 close (ni->udp_sock); in nia_free() 191 if (ni->udp_sock == sock_id) in nia_find_by_sock() 214 if (ni->udp_sock >= 0) { in nia_fds_set() 217 ni->udp_sock); in nia_fds_set() 252 if (ni->udp_sock >= 0 && FD_ISSET (ni->udp_sock, fds)) { in nia_fds_isset() 255 fn, ni->udp_sock); in nia_fds_isset() 257 *sock = ni->udp_sock; in nia_fds_isset() 585 ni->udp_sock = -1; in net_mesg_socket() [all …]
|
/dports/games/cave9/cave9-e6896eb/src/ |
H A D | score.c | 43 if(score->udp_sock != NULL) { in score_net_finish() 44 SDLNet_UDP_Close(score->udp_sock); in score_net_finish() 45 score->udp_sock = NULL; in score_net_finish() 61 score->udp_sock = NULL; in score_net_init() 67 score->udp_sock = SDLNet_UDP_Open(0); in score_net_init() 68 if(score->udp_sock == NULL) { in score_net_init() 72 if(SDLNet_UDP_Bind(score->udp_sock, 0, &addr) == -1) { in score_net_init() 91 if (score->udp_sock == NULL) { in score_net_update() 98 if (SDLNet_UDP_Send (score->udp_sock, 0, score->udp_pkt) == 1) in score_net_update() 101 int n = SDLNet_UDP_Recv (score->udp_sock, score->udp_pkt); in score_net_update()
|
/dports/dns/p5-DNS-Ldns/ldns-1.8.1/examples/ |
H A D | ldns-testns.c | 238 int udp_sock; member 248 nb = sendto(userdata->udp_sock, (void*)buf, len, 0, in send_udp() 263 userdata.udp_sock = udp_sock; in handle_udp() 409 static int udp_sock, tcp_sock; variable 430 FD_SET(udp_sock, &rset); in service() 433 maxfd = udp_sock; in service() 439 if(FD_ISSET(udp_sock, &rset)) { in service() 440 handle_udp(udp_sock, entries, &count); in service() 554 if((udp_sock = socket(fam, SOCK_DGRAM, 0)) < 0) { 567 if (bind_port(udp_sock, port, fam)) { [all …]
|
/dports/dns/py-ldns/ldns-1.8.1/examples/ |
H A D | ldns-testns.c | 238 int udp_sock; member 248 nb = sendto(userdata->udp_sock, (void*)buf, len, 0, in send_udp() 263 userdata.udp_sock = udp_sock; in handle_udp() 409 static int udp_sock, tcp_sock; variable 430 FD_SET(udp_sock, &rset); in service() 433 maxfd = udp_sock; in service() 439 if(FD_ISSET(udp_sock, &rset)) { in service() 440 handle_udp(udp_sock, entries, &count); in service() 554 if((udp_sock = socket(fam, SOCK_DGRAM, 0)) < 0) { 567 if (bind_port(udp_sock, port, fam)) { [all …]
|
/dports/dns/ldns/ldns-1.8.1/examples/ |
H A D | ldns-testns.c | 238 int udp_sock; member 248 nb = sendto(userdata->udp_sock, (void*)buf, len, 0, in send_udp() 263 userdata.udp_sock = udp_sock; in handle_udp() 409 static int udp_sock, tcp_sock; variable 430 FD_SET(udp_sock, &rset); in service() 433 maxfd = udp_sock; in service() 439 if(FD_ISSET(udp_sock, &rset)) { in service() 440 handle_udp(udp_sock, entries, &count); in service() 554 if((udp_sock = socket(fam, SOCK_DGRAM, 0)) < 0) { 567 if (bind_port(udp_sock, port, fam)) { [all …]
|
/dports/games/battletanks/btanks-0.9.8083/engine/net/ |
H A D | scanner.cpp | 53 mrt::UDPSocket udp_sock; in run() 55 udp_sock.set_broadcast_mode(1); in run() 119 udp_sock.broadcast(data, _port); in run() 123 ping(udp_sock); in run() 129 if (set.check(udp_sock, mrt::SocketSet::Exception)) { in run() 134 udp_sock.create(); in run() 135 udp_sock.set_broadcast_mode(1); in run() 136 } else if (set.check(udp_sock, mrt::SocketSet::Read)) { in run() 139 int r = udp_sock.recv(addr, buf, sizeof(buf)); in run() 204 void Scanner::ping(mrt::UDPSocket &udp_sock) { in ping() argument [all …]
|
/dports/net-mgmt/flow-tools/flow-tools-2ca53f5/src/ |
H A D | flow-send.c | 77 int i, n, ret, tx_delay, udp_sock; in main() local 169 if ((udp_sock = socket(AF_INET, SOCK_RAW, IPPROTO_RAW)) < 0) in main() 177 if (setsockopt(udp_sock, IPPROTO_IP, IP_HDRINCL, in main() 187 if ((udp_sock = socket(AF_INET, SOCK_DGRAM, 0)) < 0) in main() 192 if (bigsockbuf(udp_sock, SO_SNDBUF, FT_SO_SND_BUFSIZE) < 0) in main() 204 if (setsockopt(udp_sock, IPPROTO_IP, IP_MULTICAST_TTL, in main() 215 if (bind(udp_sock, (struct sockaddr*)&loc_addr, sizeof loc_addr) < 0) in main() 220 if (connect(udp_sock, (struct sockaddr*)&rem_addr, sizeof rem_addr) < 0) in main() 297 pdu_xmit(tx_delay, src_ip_spoof, hdr_len, ip_hdr, udp_hdr, udp_sock, in main() 310 pdu_xmit(tx_delay, src_ip_spoof, hdr_len, ip_hdr, udp_hdr, udp_sock, in main()
|
/dports/emulators/mess/mame-mame0226/3rdparty/asio/src/tests/unit/ |
H A D | socket_base.cpp | 209 udp_sock.set_option(broadcast1, ec); in test() 213 udp_sock.get_option(broadcast2, ec); in test() 223 udp_sock.set_option(broadcast3, ec); in test() 227 udp_sock.get_option(broadcast4, ec); in test() 239 udp_sock.set_option(debug1, ec); in test() 256 udp_sock.get_option(debug2, ec); in test() 278 udp_sock.set_option(debug3, ec); in test() 292 udp_sock.get_option(debug4, ec); in test() 316 udp_sock.set_option(do_not_route1, ec); in test() 326 udp_sock.get_option(do_not_route2, ec); in test() [all …]
|
/dports/emulators/mame/mame-mame0226/3rdparty/asio/src/tests/unit/ |
H A D | socket_base.cpp | 209 udp_sock.set_option(broadcast1, ec); in test() 213 udp_sock.get_option(broadcast2, ec); in test() 223 udp_sock.set_option(broadcast3, ec); in test() 227 udp_sock.get_option(broadcast4, ec); in test() 239 udp_sock.set_option(debug1, ec); in test() 256 udp_sock.get_option(debug2, ec); in test() 278 udp_sock.set_option(debug3, ec); in test() 292 udp_sock.get_option(debug4, ec); in test() 316 udp_sock.set_option(do_not_route1, ec); in test() 326 udp_sock.get_option(do_not_route2, ec); in test() [all …]
|
/dports/audio/supercollider/SuperCollider-3.11.0-Source/external_libraries/link/modules/asio-standalone/asio/src/tests/unit/ |
H A D | socket_base.cpp | 209 udp_sock.set_option(broadcast1, ec); in test() 213 udp_sock.get_option(broadcast2, ec); in test() 223 udp_sock.set_option(broadcast3, ec); in test() 227 udp_sock.get_option(broadcast4, ec); in test() 239 udp_sock.set_option(debug1, ec); in test() 256 udp_sock.get_option(debug2, ec); in test() 278 udp_sock.set_option(debug3, ec); in test() 292 udp_sock.get_option(debug4, ec); in test() 316 udp_sock.set_option(do_not_route1, ec); in test() 326 udp_sock.get_option(do_not_route2, ec); in test() [all …]
|
/dports/devel/boost-docs/boost_1_72_0/libs/asio/test/ |
H A D | socket_base.cpp | 220 udp_sock.set_option(broadcast1, ec); in test() 224 udp_sock.get_option(broadcast2, ec); in test() 234 udp_sock.set_option(broadcast3, ec); in test() 238 udp_sock.get_option(broadcast4, ec); in test() 250 udp_sock.set_option(debug1, ec); in test() 267 udp_sock.get_option(debug2, ec); in test() 289 udp_sock.set_option(debug3, ec); in test() 303 udp_sock.get_option(debug4, ec); in test() 327 udp_sock.set_option(do_not_route1, ec); in test() 337 udp_sock.get_option(do_not_route2, ec); in test() [all …]
|
/dports/devel/boost-python-libs/boost_1_72_0/libs/asio/test/ |
H A D | socket_base.cpp | 220 udp_sock.set_option(broadcast1, ec); in test() 224 udp_sock.get_option(broadcast2, ec); in test() 234 udp_sock.set_option(broadcast3, ec); in test() 238 udp_sock.get_option(broadcast4, ec); in test() 250 udp_sock.set_option(debug1, ec); in test() 267 udp_sock.get_option(debug2, ec); in test() 289 udp_sock.set_option(debug3, ec); in test() 303 udp_sock.get_option(debug4, ec); in test() 327 udp_sock.set_option(do_not_route1, ec); in test() 337 udp_sock.get_option(do_not_route2, ec); in test() [all …]
|
/dports/databases/percona57-pam-for-mysql/boost_1_59_0/libs/asio/test/ |
H A D | socket_base.cpp | 214 udp_sock.set_option(broadcast1, ec); in test() 218 udp_sock.get_option(broadcast2, ec); in test() 228 udp_sock.set_option(broadcast3, ec); in test() 232 udp_sock.get_option(broadcast4, ec); in test() 244 udp_sock.set_option(debug1, ec); in test() 261 udp_sock.get_option(debug2, ec); in test() 283 udp_sock.set_option(debug3, ec); in test() 297 udp_sock.get_option(debug4, ec); in test() 321 udp_sock.set_option(do_not_route1, ec); in test() 331 udp_sock.get_option(do_not_route2, ec); in test() [all …]
|
/dports/www/restbed/restbed-4.8/dependency/asio/asio/src/tests/unit/ |
H A D | socket_base.cpp | 220 udp_sock.set_option(broadcast1, ec); in test() 224 udp_sock.get_option(broadcast2, ec); in test() 234 udp_sock.set_option(broadcast3, ec); in test() 238 udp_sock.get_option(broadcast4, ec); in test() 250 udp_sock.set_option(debug1, ec); in test() 267 udp_sock.get_option(debug2, ec); in test() 289 udp_sock.set_option(debug3, ec); in test() 303 udp_sock.get_option(debug4, ec); in test() 327 udp_sock.set_option(do_not_route1, ec); in test() 337 udp_sock.get_option(do_not_route2, ec); in test() [all …]
|
/dports/databases/percona57-server/boost_1_59_0/libs/asio/test/ |
H A D | socket_base.cpp | 214 udp_sock.set_option(broadcast1, ec); in test() 218 udp_sock.get_option(broadcast2, ec); in test() 228 udp_sock.set_option(broadcast3, ec); in test() 232 udp_sock.get_option(broadcast4, ec); in test() 244 udp_sock.set_option(debug1, ec); in test() 261 udp_sock.get_option(debug2, ec); in test() 283 udp_sock.set_option(debug3, ec); in test() 297 udp_sock.get_option(debug4, ec); in test() 321 udp_sock.set_option(do_not_route1, ec); in test() 331 udp_sock.get_option(do_not_route2, ec); in test() [all …]
|