Search Unity

Unet use Fragment chanel cannot connect to server

Discussion in 'UNet' started by ratxrat, Jan 19, 2019.

  1. ratxrat

    ratxrat

    Joined:
    Nov 7, 2016
    Posts:
    19
    hallo there, i try send data to server use reliable channel but i got this message

    Code (CSharp):
    1. Channel {1} for connection {1} does not support fragmented messages; MTU: {1440}, message length: {2076}, max length {1402}
    2. UnityEngine.Networking.NetworkTransport:Send(Int32, Int32, Int32, Byte[], Int32, Byte&)
    this my code for config LLapi
    Code (CSharp):
    1. NetworkTransport.Init();
    2.         ConnectionConfig cc = new ConnectionConfig();
    3.  
    4.         reliableChannel = cc.AddChannel(QosType.Reliable);
    5.         unReliableChannel = cc.AddChannel(QosType.Unreliable);
    6.         unreliableFragmenChanel = cc.AddChannel(QosType.UnreliableFragmented);
    7.  
    8.         HostTopology topo = new HostTopology(cc, MAX_CONNECTION);
    9.         hostId = NetworkTransport.AddHost(topo,0);
    10.         ConectId = NetworkTransport.Connect(hostId,ipServer,port,0, out error);
    11.  
    12.         connectionTime = Time.time;
    13.         isConect = true;
    i never connect to my server, if i dont use unreliableFragmenChanel can connect to server
     
  2. Joe-Censored

    Joe-Censored

    Joined:
    Mar 26, 2013
    Posts:
    11,847
    According to the error you're trying to send a message larger than the max size for the channel.