What's the matter? | Search |
NowSMS Support Forums ⬆ MMS & SMS Technical Discussions (unsupported) ⬆ Archive through October 29, 2003 ⬆ |
◄ ► |
Author | Message | |||
Sos |
I create two program (client, server) in mobile device. 1. create a gprs connection successfully. 2.create a client program in mobile socket(AF_INET,SOCK_DGRAM,0); sendto("127.0.0.1",3344,buff); 3.create a server program in the same mobile m_hSocket = socket(AF_INET, SOCK_DGRAM, 0); my_addr.sin_family = AF_INET; my_addr.sin_port = htons(3344); my_addr.sin_addr.s_addr = INADDR_ANY; memset(&(my_addr.sin_zero), '\0', 8); if (bind(m_hSocket, (struct sockaddr *)&my_addr, sizeof(struct sockaddr)) == -1) return false; ... while(1) { select(......) if(recvfrom(......)==-1) { error = WSAGetLastError(); // get 10014 } } what's the matter? what shall i do? thnaks in advance. | |||
Anonymous |
your recvfrom parameters wrong!@ check it thoroughly |