11 lines
321 B
Protocol Buffer
11 lines
321 B
Protocol Buffer
|
syntax = "proto3";
|
||
|
|
||
|
package Proto.Network;
|
||
|
|
||
|
// TODO: Add support for IPv6, once the game supports it (I assume we'll implement it :P)
|
||
|
message Address
|
||
|
{
|
||
|
uint32 ip = 1;
|
||
|
uint32 port = 2; // Actually only 16 bits, but apparently protobuf handles that (https://groups.google.com/d/msg/protobuf/Er39mNGnRWU/x6Srz_GrZPgJ)
|
||
|
}
|