File size: 395 Bytes
00e6582 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | #ifndef SERVER_H_INCLUDED
#define SERVER_H_INCLUDED
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <arpa/inet.h>
#include <sys/socket.h>
#include <unistd.h>
int match_addr(struct _Seafarer_Multiplayer_Server* SMS, struct sockaddr_in a, struct sockaddr_in b) {
return (a.sin_addr.s_addr == b.sin_addr.s_addr && a.sin_port == b.sin_port);
}
#endif // SERVER_H_INCLUDED
|