Jump to content

Windows CE wifi

- - - - -

  • Please log in to reply
3 replies to this topic

#1
peti634

peti634

    Newbie

  • Members
  • Pip
  • 3 posts
Hi!
I would like to ask help from you. The program, what I made, doesn't connect to the Internet through the Wifi.
This is a Client, and it should connect to a serve, what I made also, based on a specific Ip adress.
When I connect the phone (FujitsuSimens Loox T830) to the usb, it connects well, but when I try it through Wifi, it doesn't connect.
If I try connect through an other computer, the connecting will be right also, therefore the Wifi has not problem.

if(WSAStartup( MAKEWORD(2,2), &wsaData) != NO_ERROR )

{


goto Exit;

}

fSockInitialized = true;

// Create socket

Socket = socket( AF_INET, SOCK_STREAM, IPPROTO_TCP);

    if(Socket == INVALID_SOCKET )

{


        goto Exit;

    }


clientService.sin_family = AF_INET;

    clientService.sin_addr.s_addr = inet_addr(IP);

if (clientService.sin_addr.s_addr == INADDR_NONE || clientService.sin_addr.s_addr == INADDR_ANY){


goto Exit;

}

    clientService.sin_port = htons(Port);


if(connect(Socket, (SOCKADDR*) &clientService, sizeof(clientService)) == -1)

{


goto Exit;

    }


So when I connect the phone through usb, the connecting is good, but it doesn't want to use the Wifi.
Other phoneprogrammes can use the Wifi.
Have anybody an idea?
Thanks the answers!

#2
dargueta

dargueta

    Writes binary right handed and hex left handed

  • Moderators
  • 4,717 posts
  • Programming Language:C, Java, C++, PHP, Python, Perl, Assembly, Bash, Others
  • Learning:JavaScript
You're probably missing the necessary drivers. Are you getting any error messages? Check the return values of all your functions.
sudo rm -rf /

#3
peti634

peti634

    Newbie

  • Members
  • Pip
  • 3 posts
The error connect function, because wait 5-10 sec, and return -1.
The IP address, and port correct.

#4
peti634

peti634

    Newbie

  • Members
  • Pip
  • 3 posts
plz, i need help:(




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users