Author Topic: Crash when starting standalone tcp server  (Read 2428 times)

klept

  • Guest
Crash when starting standalone tcp server
« on: February 21, 2013, 05:41:30 PM »
Hey! I can't start a simple standalone tcp server, it says I must supply an udp port different than 0, the gameserver's start method lets you start it by only supplying the tcp port. Is this intended?
  1. Unhandled Exception: System.InvalidOperationException: You must specify a non-ze
  2. ro port to UdpProtocol.Start() before you can receive data.

I want to use TCP, not UDP!

thank you!

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Crash when starting standalone tcp server
« Reply #1 on: February 21, 2013, 09:24:09 PM »
Edit: I see what you mean. Add a zero check to GameServer's line 281:
  1. // Process datagrams first
  2. while (mUdp.listeningPort != 0 && mUdp.ReceivePacket(out buffer, out ip))
« Last Edit: February 21, 2013, 09:28:17 PM by ArenMook »