Difference between revisions of "Server.met file"
From AMule Project FAQ
Line 1: | Line 1: | ||
== File == | == File == | ||
− | '''Name:''' '' | + | '''Name:''' ''server.met'' |
'''Location:''' ''~/.aMule/'' | '''Location:''' ''~/.aMule/'' | ||
Line 7: | Line 7: | ||
== Description == | == Description == | ||
− | Binary file containing the list of [[server]]s known to aMule. | + | Binary file containing the list of [[server]]s known to [[aMule]]. |
− | Because its in binary format, it must be changed within aMule, or with other appropriate tools. | + | Because its in binary format, it must be changed within [[aMule]], or with other appropriate tools. |
The format description below is for development information purposes. | The format description below is for development information purposes. | ||
Line 15: | Line 15: | ||
== Format == | == Format == | ||
− | + | This file's fields are written in [[little endian]] order. | |
− | + | '''Note:''' All digit fields are unsigned unless stated. | |
− | *Server Count (4 Bytes): | + | *Met Header (1 Byte): With value ''Ox0E'', and is used in [[aMule]] to check for valid ''server.met'' files |
+ | *Server Count (4 Bytes): Lists the number of [[server]]s that follow | ||
+ | *Block of servers: Each [[server]] is constituted by the following fields: | ||
+ | **[[Server]] [[IP]] (4 Bytes): Simply that. The [[server]]'s [[IP]]. | ||
+ | **[[Server]] [[Port]] (2 Bytes): Simply that. The [[port]] through which [[aMule]] will connect to the [[server]]. | ||
+ | **Tag Count (4 Bytes): Lists the number of [[server]] tags that follows. | ||
+ | **Block of Tags: Each [[server]] can have a list of associated tags for further information about them. Each tag has the following format: | ||
− | + | == Example == | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + |
Revision as of 17:44, 7 June 2005
Contents
File
Name: server.met
Location: ~/.aMule/
Description
Binary file containing the list of servers known to aMule.
Because its in binary format, it must be changed within aMule, or with other appropriate tools.
The format description below is for development information purposes.
Format
This file's fields are written in little endian order.
Note: All digit fields are unsigned unless stated.
- Met Header (1 Byte): With value Ox0E, and is used in aMule to check for valid server.met files
- Server Count (4 Bytes): Lists the number of servers that follow
- Block of servers: Each server is constituted by the following fields:
- Server IP (4 Bytes): Simply that. The server's IP.
- Server Port (2 Bytes): Simply that. The port through which aMule will connect to the server.
- Tag Count (4 Bytes): Lists the number of server tags that follows.
- Block of Tags: Each server can have a list of associated tags for further information about them. Each tag has the following format: