예제 #1
0
 public void SetSendWindow(_RM_SEND_WINDOW window)
 {
     byte[] allData = PgmSocket.ConvertStructToBytes(window);
       SetSocketOption(PgmSocket.PGM_LEVEL, (SocketOptionName)1001, allData);
 }
예제 #2
0
 private unsafe void SetSendWindow(Socket socket)
 {
     var window = new _RM_SEND_WINDOW();
     window.RateKbitsPerSec = 1024;
     window.WindowSizeInMSecs = 0;
     window.WindowSizeInBytes = 10000000 * 2;
     byte[] allData = PgmSocket.ConvertStructToBytes(window);
     socket.SetSocketOption(PgmSocket.PGM_LEVEL, (SocketOptionName)1001, allData);
 }