net_recvfrom: is it working? [SOLVED] April 06, 2009 04:52PM | Registered: 15 years ago Posts: 8 |
Re: net_recvfrom: is it working? April 06, 2009 05:56PM | Registered: 15 years ago Posts: 703 |
Re: net_recvfrom: is it working? April 06, 2009 08:45PM | Registered: 15 years ago Posts: 8 |
Re: net_recvfrom: is it working? April 06, 2009 09:04PM | Registered: 15 years ago Posts: 703 |
s32 connection_socket; //client struct sockaddr_in client; int client_recv(char* buffer,int len) { if (!client_connected) return 0; u32 clen = sizeof(client); return c_protocol == TCP ? net_recv(connection_socket, buffer, len, 0) : net_recvfrom(connection_socket, buffer, len, 0,(struct sockaddr*)&client,&clen); }
Re: net_recvfrom: is it working? [SOLVED] April 08, 2009 05:25PM | Registered: 15 years ago Posts: 8 |
Re: net_recvfrom: is it working? [SOLVED] April 09, 2009 02:50PM | Registered: 15 years ago Posts: 4 |
s32 net_recv(s32 s, void *mem, s32 len, u32 flags) { return net_recvfrom(s, mem, len, flags, NULL, NULL); }