tomtom1305
Messages postés11Date d'inscriptionjeudi 31 mai 2012StatutMembreDernière intervention14 février 2013
-
14 févr. 2013 à 11:29
yann_lo_san
Messages postés1137Date d'inscriptionlundi 17 novembre 2003StatutMembreDernière intervention23 janvier 2016
-
16 févr. 2013 à 18:19
Bonjour à tous,
Je suis bloqué à cause du Bind() dans mon code pour créer un serveur UDP en c++ CLI
Pour que vous puissiez voir où j'en suit, voila le code en question :
int main(array<System::String ^> ^args)
{
String^ ip = "10.10.100.5";
int port = 2500;
String^ message = "This test is very nice !!";
array^ p;
Console::WriteLine(L"Bienvenue sur le serveur !!");
::Socket^ s = gcnew ::Socket(::AddressFamily::InterNetwork,::SocketType::Dgram,::ProtocolType::Udp);
IPEndPoint^ endpoint = gcnew IPEndPoint(::IPAddress::Any, 2500 );
Socket::Bind();
Console::WriteLine(L"Attendre la connection du client ...");
return 0;
}