Bonjour,
Je suis un tutoriel socket, d'habitude je comprend tout, mais là, c'est super mal expliqué donc j'aurais besoin de votre aide , voici le code :
Merci
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 while (true) { byte[] bufferSize = new byte[4]; socketAccept.Receive(bufferSize, 0, bufferSize.Length, 0); int size = BitConverter.ToInt32(bufferSize, 0); while (size > 0) { byte[] buffer; if (size < socketAccept.ReceiveBufferSize) { buffer = new byte[size]; } else { buffer = new byte[socketAccept.ReceiveBufferSize]; } } }
Partager